CVE-2026-129438
Incorrect RFC 3986 URI serialization for oversized input
- CVSS
- 6.3
- EPSS
- 0.56% (p48)
- Published
- 2026-11-19
- Age
- 15d old
- Modified
- 2026-11-24
- Product
- PHP Group PHP
- Aliases
- GHSA-mg3p-mxj9-g2mm
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Description
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.
Fixed in
8.5.13
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | PHP | >=8.5.0, <8.5.13 | 8.5.13 |
Sources
- NVD · first seen 15d ago · NVD terms of use
- OSV · first seen 10d ago · CC-BY 4.0
- CVE List · first seen 15d ago · CVE Terms of Use