{"id":"CVE-2026-129538","summary":"PHP-CGI out-of-bounds read and write during PATH_INFO correction","details":"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.","aliases":["GHSA-5j3f-64r7-f564"],"modified":"2026-11-25T01:00:51.650170177Z","published":"2026-11-19T14:42:40.521Z","related":["ALSA-2026:100821","ALSA-2026:100991","ALSA-2026:101276","ALSA-2026:102226","ALSA-2026:102255","ALSA-2026:102261","ALSA-2026:102300","SUSE-SU-2026:5389-1","SUSE-SU-2026:5390-1","SUSE-SU-2026:5398-1","SUSE-SU-2026:5399-1","openSUSE-SU-2026:12618-1"],"database_specific":{"cna_assigner":"php","cwe_ids":["CWE-125","CWE-787","CWE-823"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129538.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/129xxx/CVE-2026-129538.json"},{"type":"ADVISORY","url":"https://github.com/php/php-src/security/advisories/GHSA-5j3f-64r7-f564"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129538"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/php/php-src","events":[{"introduced":"0"},{"fixed":"bbc92cfe9a4f00a72bff5766b17842b0425b0050"},{"introduced":"d26068059e83fe40de3430a512471d194119bee0"},{"fixed":"ab4b18847bcc7bd11eaafb557ad8ba43410a4dc8"},{"introduced":"b437f2b32eb364c9496d24abcc734272e5c9c980"},{"fixed":"6c4c8ecd1c66f2eaa7cadc893bb303a0cdf896c1"},{"introduced":"685e99655ae97c667950f7f7d176985958718f56"},{"fixed":"46bcb661df53d9ded93fef239e15707bf7cea2e9"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"8.2.36"}]},{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"8.3.0"},{"fixed":"8.3.37"}]},{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"8.4.0"},{"fixed":"8.4.28"}]},{"range":[{"introduced":"8.5.0"},{"fixed":"8.5.13"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"}]}}],"versions":["php-8.3.34","security-audit-2024","POST_PHP7_NSAPI_REMOVAL","PRE_PHP7_NSAPI_REMOVAL","PRE_PHP7_EREG_MYSQL_REMOVALS","PRE_PHP7_REMOVALS","POST_PHP7_REMOVALS","POST_AST_MERGE","PRE_AST_MERGE","POST_64BIT_BRANCH_MERGE","PRE_64BIT_BRANCH_MERGE","POST_PHPNG_MERGE"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-129538.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}