---
title: "CVE-2026-129538"
date: "2026-11-23T15:34:04+00:00"
url: "https://checkmarx.com/zero/vulnerabilities/cve-2026-129538/"
description: "The PHP CGI binary (php-cgi) can access memory outside the supplied path information when a web server passes inconsistent script and path values. Depending on the request and configuration, an unauthenticated attacker may be able to crash the PHP process, expose process memory, or corrupt memory. This affects php-cgi in both CGI and FastCGI mode when cgi.fix_pathinfo=1, the default. PHP-FPM and PHP running as an Apache module are not affected."
---

# CVE-2026-129538

[Disclosed vulnerabilities](https://checkmarx.com/zero/vulnerabilities/)

Fixed: Nov 19, 2026

CVE-2026-129538  **Published:** Nov 19, 2026

CWE-125 Out-of-bounds Read  6.9 Medium Severity

JC João Cunha da Silva  Reported by Checkmarx Zero

Details Overview

## Summary

The PHP CGI binary (`php-cgi`) can access memory outside the supplied path information when a web server passes inconsistent script and path values. Depending on the request and configuration, an unauthenticated attacker may be able to crash the PHP process, expose process memory, or corrupt memory.

This affects `php-cgi` in both CGI and FastCGI mode when `cgi.fix_pathinfo=1`, the default. PHP-FPM and PHP running as an Apache module are not affected.

## Product

Vulnerable Versions:

- &lt; 8.2.36
- &gt;= 8.3.0, &lt; 8.3.37
- &gt;= 8.4.0, &lt; 8.4.28
- &gt;= 8.5.0, &lt; 8.5.13

## Impact

- **Denial of service:** a single unauthenticated request can crash the `php-cgi` process handling it. Crashes were reproduced on default, non-debug builds of PHP 8.2.35, 8.3.36, 8.4.27, and 8.5.12.
- **Information disclosure:** unrelated memory can appear in `$_SERVER['PATH_INFO']` or `PATH_TRANSLATED`. This may include other request parameters or values added by the front end. Disclosure to the attacker depends on the application returning these values or making them available through logs or other output.
- **Memory corruption:** PHP can overwrite memory during path correction. Code execution has been claimed, but has not been confirmed.

## Remediation

Upgrade to the fixed release for your PHP branch when it becomes available. As a workaround, set `cgi.fix_pathinfo=0` in the configuration used by `php-cgi`, and check that the application’s routing still works.

Alternatively, correct the web server mapping so that the path PHP uses identifies the existing script and any additional path information is consistent. For the Apache example above, rewriting to the URL instead of the absolute filesystem path avoided the issue:

```
RewriteRule "^/news/(.*)$" "/index.php/content/articles/$1" [PT,L]
```

See Apache’s documentation for the [`PT` rewrite flag](https://httpd.apache.org/docs/2.4/rewrite/flags.html#flag_pt). Other rewrites and aliases can affect the result, so verify the complete configuration. Direct access to a FastCGI listener should also be restricted to trusted front ends.

## Credit

This issue was also reported by Checkmarx Security Researcher João Cunha da Silva, although he was not the original finder.

## Resources

1. [GHSA-5j3f-64r7-f564](https://github.com/php/php-src/security/advisories/GHSA-5j3f-64r7-f564)

0  Medium Severity CVSS v4.0 Score

   6.9

CVSS v4.0 Vectors- 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

Advisory Timeline1. Fixed Nov 19, 2026

## Explore more findings

[19 Nov 2026 CVE-2026-129292  PHP-FPM status endpoint XSS via unescaped user and script fields   5.3  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-129292/) [22 Apr 2026 CVE-2026-42236  Unauthenticated Denial of Service in n8n via MCP Client Registration   8.7  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-4223/) [22 Apr 2026 CVE-2026-42230  n8n has Open Redirect in MCP OAuth Consent Flow   5.1  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-42230/) [27 Feb 2026 CVE-2026-27578  n8n Vulnerable to Stored XSS via Various Nodes   8.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-27578/) [26 Feb 2026 CVE-2026-27950  Use-after-free in FreeRDP SDL2   5.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-27950/) [27 Nov 2025 CVE-2025-34281  Stored Cross-Site Scripting (XSS) in ThingsBoard   6.2  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-34281/) [17 Jan 2025 CVE-2025-0825  HTTP Response Splitting in cpp-httplib   6.9  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-0825/) [17 Jun 2025 CVE-2025-6050  Stored Cross-Site Scripting (XSS) in Mezzanine CMS Admin Interface   4.8  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-6050/) [12 Dec 2024 CVE-2024-8374  Code Injection in UltiMaker Cura   7.8  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-8374/) [14 Nov 2024 CVE-2024-52526  Stored Cross-site Scripting in @LibreNMS/LibreNMS Services Tab   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-52526/) [14 Nov 2024 CVE-2024-51497  Stored Cross-site Scripting in @LibreNMS/LibreNMS Custom OID Tab   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-51497/) [14 Nov 2024 CVE-2024-51496  Reflected Cross-site Scripting in @LibreNMS/LibreNMS /wireless and /health endpoints   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-51496/)
