Incorrect RFC 3986 URI serialization for oversized input. The Uri\Rfc3986\Uri class does not correctly handle the output-size limit and errors of the...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:14.04:LTSphp5 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:16.04:LTSphp7.0 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSphp7.2 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:20.04:LTSphp7.4 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSphp8.1 |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSphp8.3 |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10php8.5 |
< 8.5.9-0ubuntu2.2→ 8.5.9-0ubuntu2.2 |
8.5.9-0ubuntu2.2 |
| Ubuntu:26.04:LTSphp8.5 |
< 8.5.4-0ubuntu1.6→ 8.5.4-0ubuntu1.6 |
8.5.4-0ubuntu1.6 |
Original description The description as published by the source.
Incorrect RFC 3986 URI serialization for oversized input. The Uri\Rfc3986\Uri class does not correctly handle the output-size limit and errors of the uriparser library when converting a URI back to a string. For a URI whose string representation reaches approximately 2 GiB, toString(), toRawString() and other serializing operations can return a truncated or invalid string instead of an error. An application that accepts attacker-controlled URI data of that size, has enough memory to process it and trusts the result may make incorrect validation or routing decisions, and the large allocations can exhaust memory. parse_url() and Uri\WhatWg\Url are not affected. This issue affects PHP versions 8.5.* before 8.5.13. This affects the Uri\Rfc3986\Uri class introduced in PHP 8.5.0. The legacy parse_url() function and the separate Uri\WhatWg\Url implementation are not affected by this issue.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory ubuntu.com
- report ubuntu.com
- report cve.org
- report github.com