CVE-2026-129438Incorrect RFC 3986 URI serialization for oversized input
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.
What to do
Fixed builds are available from Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | php8.5 | Fixed | 8.5.9-0ubuntu2.2 | UBUNTU-CVE-2026-129438 |
| Ubuntu 26.04 | php8.5 | Fixed | 8.5.4-0ubuntu1.6 | UBUNTU-CVE-2026-129438 |
| Ubuntu 24.04 | php8.3 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | php8.1 | Not affected vulnerable_code_not_present | ||
| Red Hat Enterprise Linux 10 | php | Not affected | ||
| Red Hat Enterprise Linux 10 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 10 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 10 | php-common | Not affected | ||
| Red Hat Enterprise Linux 10 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 10 | php-dbg | Not affected | ||
| Red Hat Enterprise Linux 10 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 10 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 10 | php-ffi | Not affected | ||
| Red Hat Enterprise Linux 10 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 10 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 10 | php-gmp | Not affected | ||
| Red Hat Enterprise Linux 10 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 10 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 10 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 10 | php-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 10 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 10 | php-opcache | Not affected | ||
| Red Hat Enterprise Linux 10 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 10 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 10 | php-process | Not affected | ||
| Red Hat Enterprise Linux 10 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 10 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 10 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4 | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-bcmath | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-cli | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-common | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-dba | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-dbg | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-embedded | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-enchant | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-ffi | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-fpm | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-gd | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-gmp | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-intl | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-ldap | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-mbstring | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-odbc | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-opcache | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-pdo | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-pgsql | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-process | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-snmp | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-soap | Not affected | ||
| Red Hat Enterprise Linux 10 | php8.4-xml | Not affected | ||
| Red Hat Enterprise Linux 9 | php | Not affected | ||
| Red Hat Enterprise Linux 9 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 9 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 9 | php-common | Not affected | ||
| Red Hat Enterprise Linux 9 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 9 | php-dbg | Not affected | ||
| Red Hat Enterprise Linux 9 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 9 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 9 | php-ffi | Not affected | ||
| Red Hat Enterprise Linux 9 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 9 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 9 | php-gmp | Not affected | ||
| Red Hat Enterprise Linux 9 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 9 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 9 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 9 | php-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 9 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 9 | php-opcache | Not affected | ||
| Red Hat Enterprise Linux 9 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 9 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 9 | php-process | Not affected | ||
| Red Hat Enterprise Linux 9 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 9 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 9 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 8 | apcu-panel | Not affected | ||
| Red Hat Enterprise Linux 8 | libzip | Not affected | ||
| Red Hat Enterprise Linux 8 | libzip-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libzip-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | php | Not affected | ||
| Red Hat Enterprise Linux 8 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 8 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 8 | php-common | Not affected | ||
| Red Hat Enterprise Linux 8 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 8 | php-dbg | Not affected | ||
| Red Hat Enterprise Linux 8 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 8 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 8 | php-ffi | Not affected | ||
| Red Hat Enterprise Linux 8 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 8 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 8 | php-gmp | Not affected | ||
| Red Hat Enterprise Linux 8 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 8 | php-json | Not affected | ||
| Red Hat Enterprise Linux 8 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 8 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 8 | php-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 8 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 8 | php-opcache | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pear | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-apcu | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-apcu-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-rrd | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-xdebug | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-xdebug3 | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pecl-zip | Not affected | ||
| Red Hat Enterprise Linux 8 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 8 | php-process | Not affected | ||
| Red Hat Enterprise Linux 8 | php-recode | Not affected | ||
| Red Hat Enterprise Linux 8 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 8 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 8 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 8 | php-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 7 | php | Not affected | ||
| Red Hat Enterprise Linux 7 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 7 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 7 | php-common | Not affected | ||
| Red Hat Enterprise Linux 7 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 7 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 7 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 7 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 7 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 7 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 7 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 7 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 7 | php-mysql | Not affected | ||
| Red Hat Enterprise Linux 7 | php-mysqlnd | Not affected | ||
| Red Hat Enterprise Linux 7 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 7 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 7 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 7 | php-process | Not affected | ||
| Red Hat Enterprise Linux 7 | php-pspell | Not affected | ||
| Red Hat Enterprise Linux 7 | php-recode | Not affected | ||
| Red Hat Enterprise Linux 7 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 7 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 7 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 7 | php-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 6 | php | Not affected | ||
| Red Hat Enterprise Linux 6 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 6 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 6 | php-common | Not affected | ||
| Red Hat Enterprise Linux 6 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 6 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 6 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 6 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 6 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 6 | php-imap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 6 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 6 | php-mysql | Not affected | ||
| Red Hat Enterprise Linux 6 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 6 | php-process | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pspell | Not affected | ||
| Red Hat Enterprise Linux 6 | php-recode | Not affected | ||
| Red Hat Enterprise Linux 6 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 6 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-tidy | Not affected | ||
| Red Hat Enterprise Linux 6 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 6 | php-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 6 | php-zts | Not affected |
What the vendor says
As published in the CVE record by php, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- PHP Group PHP: affected: 8.5.0 to before 8.5.13; fixed in
8.5.13
Vendor advisories:
- https://github.com/php/php-src/security/advisories/GHSA-mg3p-mxj9-g2mm (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.