{"id":"CVE-2026-129538","title":"PHP-CGI out-of-bounds read and write during PATH_INFO correction","summary":"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 …","severity":"medium","cvss":6.9,"cvssVector":"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","cvssSource":"cna","cwe":["CWE-125","CWE-787","CWE-823"],"vendor":"PHP Group","product":"PHP","affected":["PHP < 8.2.36","PHP >= 8.3.0 < 8.3.37","PHP >= 8.4.0 < 8.4.28","PHP >= 8.5.0 < 8.5.13"],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-19T16:08:57.554855Z"},"published":"2026-11-19","updated":"2026-11-19","sourceUpdated":"2026-11-19T19:36:26.907Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-129538","references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-5j3f-64r7-f564"}],"tags":["cve.org"],"ingestedAt":"2026-11-19T14:53:19.911Z","epss":0.12818,"epssPercentile":0.96361,"slug":"CVE-2026-129538","body":"## Overview\n\nPHP-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 before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.\n\n## Affected\n\n- `PHP < 8.2.36`\n- `PHP >= 8.3.0 < 8.3.37`\n- `PHP >= 8.4.0 < 8.4.28`\n- `PHP >= 8.5.0 < 8.5.13`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":41,"depthScoreParts":{"impact":38,"likelihood":2.6,"exploitation":0,"ransomware":0},"changes":[{"seq":241990,"id":"CVE-2026-129538","ts":1795246495470,"field":"epss","old":null,"new":"0.12818"}]}