Skip to main content

PHP CVE-2026-129438

| EUVDEUVD-2026-130190 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-11-19 php
6.3
CVSS 4.0 · Vendor: php
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit ~2 GiB attacker-controlled URI
  2. Delivery
    Reach Uri\Rfc3986\Uri serialization (toString/toRawString)
  3. Exploit
    Trigger integer overflow in output-size handling
  4. Execution
    Receive truncated or zero-filled URI treated as valid
  5. Impact
    Cause 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

PHP 8.5.0 <8.5.13

Affected Packages

euvd php fix: 8.5.13

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

Vendor (php) PRIMARY 6.3 MEDIUM
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
vuln.today AI 4.8 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (php).

CVSS VectorVendor: php

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 19, 2026 - 16:18 EUVD

DescriptionCVE.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

EPSS Score
0.6%
Top 52% exploitable
Prevalence
Medium
PHP is ubiquitous but only the new 8.5.x branch and opt-in Rfc3986 class are affected
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

33
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

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

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy