{"id":"CVE-2024-8927","state":"PUBLISHED","title":"cgi.force_redirect configuration is bypassable due to the environment variable collision","description":"In PHP versions 8.1.* before 8.1.30, 8.2.* before 8.2.24, 8.3.* before 8.3.12, HTTP_REDIRECT_STATUS variable is used to check whether or not CGI binary is being run by the HTTP server. However, in certain scenarios, the content of this variable can be controlled by the request submitter via HTTP headers, which can lead to cgi.force_redirect option not being correctly applied. In certain configurations this may lead to arbitrary file inclusion in PHP.","publishedAt":"2024-10-08T03:56:31.849Z","updatedAt":"2025-11-03T22:33:09.411Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"php"},"assigner":"php","products":["PHP Group PHP"],"affected":[{"vendor":"PHP Group","product":"PHP","defaultStatus":"unaffected","versions":[{"version":"8.1.*","status":"affected","lessThan":"8.1.30","versionType":"semver"},{"version":"8.2.*","status":"affected","lessThan":"8.2.24","versionType":"semver"},{"version":"8.3.*","status":"affected","lessThan":"8.3.12","versionType":"semver"}]}],"references":["https://github.com/php/php-src/security/advisories/GHSA-94p6-54jq-9mwp","https://security.netapp.com/advisory/ntap-20241101-0003/","https://lists.debian.org/debian-lts-announce/2024/10/msg00011.html"],"weaknesses":["CWE-1220"],"ingestedAt":"2026-10-29T20:08:20.985Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/8xxx/CVE-2024-8927.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-8927","state":"PUBLISHED","datePublished":"2024-10-08T03:56:31.849Z","dateUpdated":"2025-11-03T22:33:09.411Z","assignerShortName":"php","assignerOrgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","dateReserved":"2024-09-17T04:09:57.362Z"},"containers":{"cna":{"title":"cgi.force_redirect configuration is bypassable due to the environment variable collision","descriptions":[{"lang":"en","value":"In PHP versions 8.1.* before 8.1.30, 8.2.* before 8.2.24, 8.3.* before 8.3.12, HTTP_REDIRECT_STATUS variable is used to check whether or not CGI binary is being run by the HTTP server. However, in certain scenarios, the content of this variable can be controlled by the request submitter via HTTP headers, which can lead to cgi.force_redirect option not being correctly applied. In certain configurations this may lead to arbitrary file inclusion in PHP."}],"affected":[{"vendor":"PHP Group","product":"PHP","defaultStatus":"unaffected","versions":[{"version":"8.1.*","status":"affected","lessThan":"8.1.30","versionType":"semver"},{"version":"8.2.*","status":"affected","lessThan":"8.2.24","versionType":"semver"},{"version":"8.3.*","status":"affected","lessThan":"8.3.12","versionType":"semver"}]}],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-94p6-54jq-9mwp"}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"providerMetadata":{"shortName":"php","orgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","dateUpdated":"2024-10-08T03:56:31.849Z"},"credits":[{"lang":"en","type":"finder","value":"Owen Gong"},{"lang":"en","type":"finder","value":"RyotaK"}],"datePublic":"2024-09-27T17:50:00.000Z","impacts":[{"capecId":"CAPEC-252","descriptions":[{"lang":"en","value":"CAPEC-252 PHP Local File Inclusion"}]}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"php","product":"php","defaultStatus":"unknown","versions":[{"version":"8.1.0","status":"affected","lessThan":"8.1.30","versionType":"semver"},{"version":"8.2.0","status":"affected","lessThan":"8.2.24","versionType":"semver"},{"version":"8.3.0","status":"affected","lessThan":"8.3.12","versionType":"semver"}],"cpes":["cpe:2.3:a:php:php:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-10-08T12:50:40.800289Z","id":"CVE-2024-8927","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1220","type":"CWE","lang":"en","description":"CWE-1220 Insufficient Granularity of Access Control"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-18T16:16:00.693Z"}},{"title":"CVE Program Container","references":[{"url":"https://security.netapp.com/advisory/ntap-20241101-0003/"},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00011.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:33:09.411Z"}}]}}}