# CVE-2026-129538: PHP-CGI out-of-bounds read and write during PATH_INFO correction

- Severity: Medium 6.9 (CVSS:4.0, scored by php) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 12.8%, higher than 96% of CVEs (2026-12-01)
- Published: 2026-11-19T14:42:40.521Z
- Modified: 2026-11-27T06:56:04.293Z
- Also known as: BIT-LIBPHP-2026-129538, BIT-PHP-2026-129538, BIT-PHP-MIN-2026-129538, GHSA-5j3f-64r7-f564
- Weaknesses: CWE-125, CWE-787, CWE-823
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: php

## Description

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 before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.

(As written by CVE List.)

## Affected

- PHP Group PHP: before 8.2.36; from 8.3.0 before 8.3.37; from 8.4.0 before 8.4.28; from 8.5.0 before 8.5.13
- libphp (Bitnami): from 8.2.0 before 8.2.36; from 8.3.0 before 8.3.37; from 8.4.0 before 8.4.28; from 8.5.0 before 8.5.13
- php (Bitnami): from 8.2.0 before 8.2.36; from 8.3.0 before 8.3.37; from 8.4.0 before 8.4.28; from 8.5.0 before 8.5.13
- php-min (Bitnami): from 8.2.0 before 8.2.36; from 8.3.0 before 8.3.37; from 8.4.0 before 8.4.28; from 8.5.0 before 8.5.13

## Every score

- php: CVSS:4.0 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`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/php/php-src/security/advisories/GHSA-5j3f-64r7-f564> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-129538> (web)

## Sources

- CVE List: [CVE-2026-129538](https://www.cve.org/CVERecord?id=CVE-2026-129538), CVE Terms of Use, modified 2026-11-19
- NVD: [CVE-2026-129538](https://nvd.nist.gov/vuln/detail/CVE-2026-129538), Public domain, modified 2026-11-19
- Bitnami Vulnerability Database: [BIT-LIBPHP-2026-129538](https://osv.dev/vulnerability/BIT-LIBPHP-2026-129538), Apache-2.0, modified 2026-11-27
- Bitnami Vulnerability Database: [BIT-PHP-2026-129538](https://osv.dev/vulnerability/BIT-PHP-2026-129538), Apache-2.0, modified 2026-11-27
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2026-129538](https://osv.dev/vulnerability/BIT-PHP-MIN-2026-129538), Apache-2.0, modified 2026-11-27

---

Page: https://cve.day/CVE-2026-129538 · Whole record: https://cve.day/CVE-2026-129538.json · Rebuilt by cve.day 2026-11-27T07:07:32.437Z
