Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit ~2 GiB attacker-controlled URI
-
DeliveryReach Uri\Rfc3986\Uri serialization (toString/toRawString)
-
ExploitTrigger integer overflow in output-size handling
-
ExecutionReceive truncated or zero-filled URI treated as valid
-
ImpactCause flawed validation/routing or memory exhaustion
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the application to pass attacker-controlled URI data whose RFC 3986 string representation reaches approximately 2 GiB (the demonstrated trigger is a representation of exactly 2,147,483,647 bytes, with longer inputs truncated) to a serializing operation of the PHP 8.5 Uri\Rfc3986\Uri class - specifically toString(), toRawString(), or another operation that converts the URI back to text - and the application must then trust the returned string. Strong limiting factors: only PHP 8.5.0 through 8.5.12 are affected; the legacy parse_url() function and Uri\WhatWg\Url are not; the PHP process must have enough memory to construct the multi-gigabyte URI; and any normal application-level URI byte-length limit (kept well below 2 GiB, as the vendor recommends as interim mitigation) prevents the condition entirely. No memory-limit bypass and no cross-request disclosure were observed. |
| Impact | This is a moderate, low-urgency issue, not a high-priority emergency. The CVSS 4.0 base score is 6.3 (Medium), and the vector tells the real story: AV:N/PR:N/UI:N looks dangerous, but AT:P (attack requirements present) and the narrow impact set (VC:N, VI:L, VA:L) cap it. No EPSS score is provided; there is no CISA KEV listing; and the only reference is the vendor's own GHSA advisory, so there is no public exploit identified at time of analysis. The SSVC-style decision label supplied is 'this_month' (vuln.today priority), consistent with a bug that warrants routine patching rather than immediate action. The defining limiter is the ~2 GiB precondition: the attacker must supply a URI whose string representation reaches approximately 2,147,483,647 bytes AND the PHP process must have enough memory to build it, which the advisory itself notes normal application-level URI length limits prevent. The vendor explicitly did NOT demonstrate a memory-limit bypass, cross-request data disclosure, or code execution - the large allocation returned fresh OS memory containing zeroes. One inconsistency worth flagging: the input Tags include 'Information Disclosure', but the advisory states VC:N and that disclosure of other requests' data was not established, so the realistic impact is corrupted/truncated URI strings leading to wrong validation/routing decisions plus temporary availability loss, not confidentiality loss. |
| Exploit ScenarioDerived | An application accepts an attacker-controlled URI, parses it into a PHP 8.5 Uri\Rfc3986\Uri object, and later calls toString() or toRawString() to validate or route the request. If the attacker supplies URI data whose serialized form reaches roughly 2 GiB and the process has enough memory, the serializer's size calculation overflows and returns a truncated or zero-filled string that is treated as success, so a trusting application makes an incorrect allow/route decision or exhausts the request's memory allowance. No public exploit code is identified; only the vendor advisory exists, and the multi-gigabyte input requirement makes practical exploitation dependent on the absence of normal URI length limits. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
PHP 8.5.0 through 8.5.12 can return a truncated or invalid string from operations that serialize a Uri\Rfc3986\Uri instance back to text - toString(), toRawString() and related conversions - when the URI's string representation approaches 2 GiB. The faulty size handling means the conversion failure is not reported and a partially written or zero-filled string is handed back as a success, so an application that accepts multi-gigabyte attacker-supplied URI data, has the memory to process it, and trusts the result may make an incorrect validation or routing decision; the oversized allocations can also consume the request's memory allowance or terminate the process when the hard limit is crossed. Only PHP 8.5.x before 8.5.13 is affected, the legacy parse_url() function and Uri\WhatWg\Url are not, and practical exposure depends heavily on the absence of any sane URI length limit. No public exploit was identified at time of analysis and the issue is not known to be actively exploited (no KEV entry); the vendor-assigned decision places it in the this-month remediation bucket rather than an emergency one.
RemediationAI
Upgrade to PHP 8.5.13, the fixed release for the 8.5 branch, per the advisory at https://github.com/php/php-src/security/advisories/GHSA-mg3p-mxj9-g2mm; note that updating the bundled uriparser library alone does not correct the problem, because the defect is in PHP's handling of the library's size limit and return values. Where an immediate upgrade is not possible, the vendor's interim mitigation is to enforce an explicit byte-length limit on untrusted URI input before it reaches the affected APIs, keeping the limit well below 2 GiB and accounting for code paths that assemble or resolve a URI from multiple components so the combined representation cannot approach the boundary - this prevents reaching the condition entirely, but any application that legitimately processes near-2 GiB URIs would be rejecting such input rather than processing it. Retaining an appropriate PHP memory limit is advisable as a capacity safeguard, though the vendor cautions that memory exhaustion is not a substitute for validating URI lengths, and exceeding the hard limit terminates the process rather than raising a catchable error, which trades data-integrity risk for availability impact.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw sits in PHP's ext/uri implementation, which delegates conversion of an RFC 3986 URI back to its textual form to the bundled uriparser library. uriparser expresses its output size via a bounded integer, and PHP's code that reserves space for the terminating byte and then computes or writes the result does not correctly handle that limit or the library's error returns (CWE-190 integer overflow paired with CWE-252 unchecked return value - the advisory itself lists both). At exactly 2,147,483,647 bytes the size calculation overflows when space for the terminator is added, the conversion fails, yet PHP still returns the already-allocated buffer as a successful string; with longer input an incomplete length is used and only a prefix (demonstrated as a://b/) is returned. The vendor notes this is PHP's own error handling rather than a uriparser defect, so updating uriparser alone does not fix it; the fix must reject representations that cannot fit the library's supported output size and surface a conversion error. The affected class was introduced in PHP 8.5.0, and the legacy parse_url() function and the independent Uri\WhatWg\Url implementation follow different code paths and are unaffected. Testing on a non-debug build produced a 2,147,483,647-byte zero-filled string; the vendor explicitly did not observe a memory-limit bypass or disclosure of data from other requests, and no code execution or broader confidentiality impact was demonstrated.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
AC:H because the ~2 GiB serialized-URI boundary plus sufficient process memory is a rare, attacker-hard precondition; PR:N as input is unauthenticated attacker URI data; C:N since no disclosure was shown, I:L and A:L for truncated-string decisions and memory exhaustion.
Primary rating from Vendor (php).
CVSS VectorVendor: php
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-130190
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB