{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-129538","assignerOrgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","state":"PUBLISHED","assignerShortName":"php","dateReserved":"2026-11-15T20:49:33.126Z","datePublished":"2026-11-19T14:42:40.521Z","dateUpdated":"2026-11-19T19:36:26.907Z"},"containers":{"cna":{"title":"PHP-CGI out-of-bounds read and write during PATH_INFO correction","datePublic":"2026-11-19T00:00:00.000Z","descriptions":[{"lang":"en","value":"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 before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.","supportingMedia":[{"type":"text/html","base64":false,"value":"<p>PHP-CGI out-of-bounds read and write during PATH_INFO correction.</p><p>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.</p><p>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.</p>"}]}],"affected":[{"vendor":"PHP Group","product":"PHP","cpes":["cpe:2.3:a:php:php:*:*:*:*:*:*:*:*"],"packageURL":"pkg:software-id/php.net/php","modules":["sapi-cgi"],"versions":[{"version":"0","lessThan":"8.2.36","status":"affected","versionType":"semver"},{"version":"8.3.0","lessThan":"8.3.37","status":"affected","versionType":"semver"},{"version":"8.4.0","lessThan":"8.4.28","status":"affected","versionType":"semver"},{"version":"8.5.0","lessThan":"8.5.13","status":"affected","versionType":"semver"}],"defaultStatus":"unaffected"}],"problemTypes":[{"descriptions":[{"lang":"en","type":"CWE","cweId":"CWE-125","description":"CWE-125 Out-of-bounds Read"}]},{"descriptions":[{"lang":"en","type":"CWE","cweId":"CWE-787","description":"CWE-787 Out-of-bounds Write"}]},{"descriptions":[{"lang":"en","type":"CWE","cweId":"CWE-823","description":"CWE-823 Use of Out-of-range Pointer Offset"}]}],"impacts":[{"capecId":"CAPEC-129","descriptions":[{"lang":"en","value":"CAPEC-129 Pointer Manipulation"}]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"version":"4.0","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"LOW","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.9,"baseSeverity":"MEDIUM","vectorString":"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"}}],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-5j3f-64r7-f564","tags":["vendor-advisory"]}],"source":{"advisory":"GHSA-5j3f-64r7-f564","discovery":"UNKNOWN"},"credits":[{"lang":"en","type":"finder","value":"Ilia Alshanetsky"},{"lang":"en","type":"analyst","value":"DylanH"},{"lang":"en","type":"analyst","value":"Sahar Avitan"},{"lang":"en","type":"analyst","value":"keyme"},{"lang":"en","type":"analyst","value":"h1ei1"},{"lang":"en","type":"analyst","value":"Joao Cunha da Silva"},{"lang":"en","type":"remediation developer","value":"Jakub Zelenka"},{"lang":"en","type":"remediation reviewer","value":"Derick Rethans"}],"x_generator":{"engine":"php-security-response"},"providerMetadata":{"orgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","shortName":"php","dateUpdated":"2026-11-19T19:36:26.907Z"}},"adp":[{"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-19T16:08:57.554855Z","id":"CVE-2026-129538","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-11-19T16:55:56.873Z"}}]}}