Incorrect RFC 3986 URI serialization in PHP for oversized input
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
PHP 8.5 from 8.5.0 before 8.5.13 and the ext-uri extension are affected. The Uri\Rfc3986\Uri class does not handle uriparser's output-size limit and errors when converting a URI back to a string (CWE-190). For a URI string of approximately 2 GiB, toString() can return a truncated or invalid string instead of an error. A remote attacker who supplies such oversized URI data to an application that trusts the result can cause incorrect validation or routing decisions and exhaust memory.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| PHP Group | PHP | 8.5.0 to before 8.5.13 | 8.5.13 | Patch available | CNA |
| — | ext-uri (php) | >= 8.5.0, < 8.5.13 | 8.5.13 | Patch available | GHSA-mg3p-mxj9-g2mm |
- PHP VendorPHP Group Affected 8.5.0 to before 8.5.13 Fixed in 8.5.13 Patch available CNA
- ext-uri (php) Vendor— Affected >= 8.5.0, < 8.5.13 Fixed in 8.5.13 Patch available GHSA-mg3p-mxj9-g2mm
Remediation
Upgrade PHP and the ext-uri extension to version 8.5.13 or later. Red Hat fixes this in RHSA-2026:101658 for Red Hat Hardened Images.
Written with Claude Haiku 5.5 from the sources below · 2026-11-23
- Fix · CNA PHP (PHP Group) Fixed in 8.5.13
- Fix · GHSA-mg3p-mxj9-g2mm ext-uri (php) Fixed in 8.5.13 Advisory →
Red Hat 1 advisory
- RHSA-2026:101658 Released 2026-11-22 · Red Hat rating CriticalRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images php-8.5.13-0.1.hum1@aarch64, php-8.5.13-0.1.hum1@s390x, php-8.5.13-0.1.hum1@src +47
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
PHP 8.5.13
3 records Highest priority Priority HIGH 1 HIGH, 1 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2026-94658 Use-after-free in PHP after request shutdown exposes stale backtracePriority HIGH 68
- TI-2026-94662 Use-after-free in PHP magic method backtraces enables code executionPriority MEDIUM 61
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Hardened Images | Fixed | RHSA-2026:101658 |
Not affected: 5 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Timeline
- 2026-11-19 Threatist record created from GHSA-mg3p-mxj9-g2mm
- 2026-11-19 Alias added: CVE-2026-129438
- 2026-11-19 CVSS score added · CNA
- 2026-11-19 Weakness changed · CNA
- 2026-11-19 Fix available: PHP Group/[email protected] · CNA
- 2026-11-19 1 new reference · CNA
- 2026-11-19 CISA SSVC decision points changed
- 2026-11-20 Affected versions changed · Red Hat
- 2026-11-20 CVSS score added · Red Hat
- 2026-11-23 Fix available: RHSA-2026:101658 · Red Hat
- 2026-11-23 Fix available: Red Hat Hardened Images · Red Hat
References
More PHP Group vulnerabilities
- TI-2024-04260 Argument injection in PHP-CGI on Windows lets attackers pass options KEVCVSS 3.1CRITICAL 9.8
- TI-2026-78794 Stale global state enables remote code execution in PHP KEVCVSS 4.0CRITICAL 9.2
- TI-2026-78793 Out-of-memory error handling in PHP allows remote code execution KEVCVSS 4.0CRITICAL 9.2
- TI-2026-94671 Session serializer mismatch in PHP enables object injection CVSS 4.0CRITICAL 9.2
- TI-2024-01743 Command injection via array-ish $command parameter of proc_open() CVSS 3.1CRITICAL 9.4
- TI-2022-13555 PDO::quote() may return unquoted string CVSS 3.1CRITICAL 9.1
Sources
- CVE-2026-129438 · CVE Program
- CVE-2026-129438 · NVD
- FIRST EPSS
- GHSA-mg3p-mxj9-g2mm · GitHub security advisory
- CVE-2026-129438 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences