Skip to main content

PHP-CGI EUVDEUVD-2026-130137

| CVE-2026-129538 MEDIUM
Out-of-bounds Read (CWE-125)
2026-11-19 php
6.9
CVSS 4.0 · Vendor: php
View

Attack ChainAIDerived

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

  1. Access
    Reach php-cgi CGI/FastCGI endpoint
  2. Exploit
    Send request yielding short or empty PATH_INFO
  3. Execution
    Trigger OOB read/write in init_request_info path correction
  4. Impact
    Crash process or disclose process memory

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires the php-cgi binary running in CGI or FastCGI mode with cgi.fix_pathinfo=1 (the default), AND one of: (a) a web server mapping where the path removed from SCRIPT_FILENAME or PATH_TRANSLATED is longer than the supplied PATH_INFO, or PATH_INFO is present but empty - e.g., a legacy Apache Action handler combined with a RewriteRule/Alias to an absolute filesystem path such as /srv/site/index.php/content/articles/...; or (b) a php-cgi FastCGI listener directly reachable by untrusted clients who can supply these parameters. Limiting factors: PHP-FPM and PHP-as-Apache-module are not affected; conventional Action setups, ordinary rewrites to index.php, and rewrites to a URL (PT flag) did not trigger the issue in vendor testing; information disclosure further depends on the application exposing PATH_INFO/PATH_TRANSLATED via output or logs; the fixed PHP branches are not vulnerable.

Impact

This is a medium-severity issue (CVSS 4.0 base 6.9) whose network-reachable, unauthenticated vector (AV:N/PR:N/UI:N) is substantially constrained by narrow preconditions, which keeps real-world priority below what the raw vector suggests. The vendor confirms impact is limited to the php-cgi SAPI in CGI/FastCGI mode with cgi.fix_pathinfo=1, and only when a web server mapping passes inconsistent SCRIPT_FILENAME/PATH_TRANSLATED vs PATH_INFO values, or when a php-cgi FastCGI listener is directly reachable by untrusted clients; PHP-FPM and the Apache module are explicitly not affected, which excludes the majority of modern PHP deployments. No EPSS score and no KEV status are present in the input, and no PoC/exploit reference is supplied, so exploitation signals are weak: no public exploit identified at time of analysis. The only reliably reproduced impact is denial of service (crash); information disclosure is conditional on the application echoing PATH_INFO/PATH_TRANSLATED, and memory corruption is possible but code execution is only claimed, not confirmed. The vuln.today decision label is 'this_month' (not act_now or emergency), consistent with a real-but-not-urgent issue: patch on a normal cadence, prioritizing any internet-exposed php-cgi/FastCGI listeners.

Exploit ScenarioDerived

An unauthenticated remote attacker sends a single crafted HTTP request to a site served by php-cgi with cgi.fix_pathinfo=1, where the server mapping yields a PATH_INFO shorter than (or empty relative to) the path stripped from SCRIPT_FILENAME/PATH_TRANSLATED - or the attacker reaches an exposed php-cgi FastCGI listener and supplies those parameters directly. This drives an out-of-bounds access during path correction, crashing the worker process and, if the application returns PATH_INFO/PATH_TRANSLATED, potentially leaking adjacent process memory. No public exploit is identified at time of analysis, and claimed code execution is unconfirmed.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 12.8% 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-CGI 8.2.x before 8.2.36, 8.3.x before 8.3.37, 8.4.x before 8.4.28 and 8.5.x before 8.5.13 can read and write outside valid memory when cgi.fix_pathinfo is enabled, the default, and a CGI/FastCGI front end supplies a PATH_INFO shorter than the suffix removed from SCRIPT_FILENAME or PATH_TRANSLATED, or an empty PATH_INFO. An unauthenticated remote attacker who can reach a matching web-server mapping or an exposed php-cgi FastCGI listener can crash the process, may disclose process memory if the application exposes PATH_INFO or PATH_TRANSLATED, and may corrupt memory; PHP-FPM and the Apache module are not affected. No public exploit was identified at time of analysis, and vendor testing reproduced crashes on default builds only under the narrow mapping conditions.

RemediationAI

Vendor-released patch: upgrade php-cgi to PHP 8.2.36, 8.3.37, 8.4.28 or 8.5.13 according to the deployed branch. If upgrading immediately is not possible, set cgi.fix_pathinfo=0 in the configuration used by php-cgi and verify application routing and PATH_INFO behavior, since disabling it can break applications that rely on path-info routing. Correct the web-server mapping so the path PHP uses identifies the existing script and any extra path is consistent; for the documented Apache Action case, rewrite to the URL with the PT flag instead of an absolute filesystem path, and re-test all rewrites and aliases because other combinations can change the result. Restrict direct access to php-cgi FastCGI listeners to trusted front ends, accepting that this may break any legitimate remote FastCGI clients. Advisories: https://github.com/php/php-src/security/advisories/GHSA-5j3f-64r7-f564 and https://www.herodevs.com/vulnerability-directory/cve-2026-129538.

Affected VersionsENISA

PHP 8.3.0 <8.3.37
PHP 8.5.0 <8.5.13
PHP 8.2.0 <8.2.36
PHP 8.4.0 <8.4.28

Affected Packages

euvd php fix: 8.2.36, 8.3.37, 8.4.28, 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

php-cgi is the standalone CGI/FastCGI SAPI. With cgi.fix_pathinfo=1 it derives a replacement PATH_INFO by subtracting the length of the suffix removed from SCRIPT_FILENAME or, in redirected CGI, PATH_TRANSLATED. If that suffix is longer than the supplied PATH_INFO, or PATH_INFO is present but empty, the computed pointer can lie before the PATH_INFO buffer; subsequent path correction reads, writes and copies through that invalid pointer. Upstream maps this to CWE-125 out-of-bounds read with related CWE-787 out-of-bounds write and CWE-823 use of an out-of-range pointer offset. Triggering requires CGI or FastCGI mode plus a web-server mapping such as a legacy Apache Action handler combined with a rewrite or Alias to an absolute filesystem path like /srv/site/index.php/content/articles/..., or a directly reachable FastCGI listener allowing untrusted parameter supply; custom FastCGI mappings and nginx fastcgi_split_path_info, SCRIPT_FILENAME, PATH_INFO and try_files interactions should be reviewed. Conventional Action setups, ordinary rewrites to index.php and URL rewrites using PT did not trigger it in vendor tests; PHP-FPM and PHP as an Apache module are unaffected. CPE cpe:2.3:a:php_group:php:*:*:*:*:*:*:*:* covers the affected PHP branches. Upstream reports reproduced crashes on PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12; code execution has been claimed but not confirmed. Assessed CVSS:3.1 severity is 6.9 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L), with upstream CVSS 4.0 base 6.9.

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.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
vuln.today AI 7.3 HIGH

Directly reachable php-cgi FastCGI listener lets an unauthenticated attacker supply the parameters (AV:N/AC:L/PR:N), with partial memory read, partial corruption, and crash giving C:L/I:L/A:L and no scope change.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/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
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 19, 2026 - 16:18 EUVD
CVE Published
Nov 19, 2026 - 14:42 cve.org
MEDIUM 6.9

DescriptionCVE.org

PHP-CGI out-of-bounds read and write during PATH_INFO correction.

The PHP CGI binary (php-cgi), in CGI and FastCGI mode with cgi.fix_pathinfo enabled (the default), can perform an out-of-bounds read and write when the path removed from SCRIPT_FILENAME or PATH_TRANSLATED is longer than the supplied PATH_INFO, or when PATH_INFO is empty. This requires a web server mapping that passes such inconsistent values, or a FastCGI listener reachable by untrusted clients. An unauthenticated remote attacker can crash the process, may obtain process memory if the application exposes PATH_INFO or PATH_TRANSLATED, and may corrupt memory. PHP-FPM and the Apache module are not affected.

This issue affects PHP versions 8.2.* before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.

Threat Intelligence Overview

EPSS Score
12.8%
Top 4% exploitable
Prevalence
Low
legacy php-cgi SAPI, uncommon versus widely-deployed PHP-FPM and mod_php
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC GitHub VulDB

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 12.8%
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

47
Low Medium High Critical
KEV: 0
EPSS: +13
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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