Skip to content
NewA calmer, faster ZeroHour

CVE-2026-129438

Truncated URI serialization in PHP Rfc3986\Uri (~2 GiB)

CVSS 4.0
6.3 medium
EPSS
—
Published
·
Modified
Analyze CVE-2026-129438 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

PHP’s Uri\Rfc3986\Uri class mishandles uriparser’s output-size limit when converting an oversized URI back to a string. A remote attacker who can supply a URI whose string form is about 2 GiB, on a host with enough memory, can make toString(), toRawString(), and similar calls return a truncated or invalid string instead of an error. Apps that trust that result may make wrong validation or routing decisions; the allocations can also exhaust memory. PHP 8.5 before 8.5.13 is affected; parse_url() and Uri\WhatWg\Url are not.

What to do: Upgrade PHP to 8.5.13. No workaround is stated.

ProductAffectedFixed in
PHP8.5.* before 8.5.138.5.13
Estimated exposure
nicheNo basis for an estimate.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

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.

Weakness
CWE-190, CWE-252
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

2 stories