{"id":"CVE-2026-129538","aliases":["GHSA-5j3f-64r7-f564"],"title":"PHP-CGI out-of-bounds read and write during PATH_INFO correction","originalDescription":"PHP-CGI out-of-bounds read and write during PATH_INFO correction.\n\nThe 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.\n\nThis 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.","severity":{"cvss":6.9,"vector":"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","label":"medium"},"exploitation":{"kev":null,"epss":{"score":0.12818,"percentile":0.96397},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"PHP","range":">=0, <8.2.36","fixed":"8.2.36"},{"ecosystem":"vendor","name":"PHP","range":">=8.2.0, <8.2.36","fixed":"8.2.36"},{"ecosystem":"vendor","name":"PHP","range":">=8.3.0, <8.3.37","fixed":"8.3.37"},{"ecosystem":"vendor","name":"PHP","range":">=8.4.0, <8.4.28","fixed":"8.4.28"},{"ecosystem":"vendor","name":"PHP","range":">=8.5.0, <8.5.13","fixed":"8.5.13"}],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-5j3f-64r7-f564","type":"vendor-advisory"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129538.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129538","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-19T21:47:03.124Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129538","license":"NVD terms of use","firstSeenAt":"2026-11-19T15:43:47.328Z"},{"name":"osv","at":"2026-11-25T16:35:10.727Z","url":"https://osv.dev/vulnerability/CVE-2026-129538","license":"CC-BY 4.0","firstSeenAt":"2026-11-25T16:02:07.963Z"},{"name":"cvelistV5","at":"2026-11-19T22:17:53.054Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-129538","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T15:00:33.794Z"}],"firstSeenAt":"2026-11-19T15:00:33.794Z","publishedAt":"2026-11-19T14:42:40.521Z","modifiedAt":"2026-11-25T15:42:28.066Z"}