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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| PHP Group | PHP | 8.5.0 – < 8.5.13 | 8.5.13 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | php8.5 | No fix yet | — |
| Ubuntu 26.04 LTS | php8.5 | No fix yet | — |
| Ubuntu 24.04 LTS | php8.3 | No fix yet | — |
| Ubuntu 22.04 LTS | php8.1 | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | php7.4 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | php7.2 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | php7.0 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | php5 | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | php8 | 8.5.13-1.1 | openSUSE-SU-2026:12618-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | php8.5 +26 | 8.5.13-1.amzn2023.0.1 | ALAS2023-2026-3506 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | php-8.5 +92 | 8.5.13-r0 | — |
| Wolfi rolling | php-8.6 +92 | 8.6.0-r0 | — |
Advisories 2
- openSUSE-SU-2026:12618-1 php8-8.5.13-1.1 on GA media SUSE / openSUSE Security Updates · Nov 20, 2026
- ALAS2023-2026-3506 Critical: php8.5 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 19, 2026