# CVE-2024-8927: cgi.force_redirect configuration is bypassable due to the environment variable collision

- Severity: High 7.5 (CVSS:3.1, scored by php) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.05%, higher than 65% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-10-08T03:56:31.849Z
- Modified: 2026-09-08T08:48:18.243Z
- Also known as: BIT-LIBPHP-2024-8927, BIT-PHP-2024-8927, BIT-PHP-MIN-2024-8927, GHSA-94p6-54jq-9mwp
- Weaknesses: CWE-1220
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: php

## 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.

(As written by CVE List.)

## Affected

- PHP Group PHP: from 8.1.* before 8.1.30; from 8.2.* before 8.2.24; from 8.3.* before 8.3.12
- php php: from 8.1.0 before 8.1.30; from 8.2.0 before 8.2.24; from 8.3.0 before 8.3.12
- libphp (Bitnami): before 8.1.30; from 8.2.0 before 8.2.24; from 8.3.0 before 8.3.12
- php (Bitnami): before 8.1.30; from 8.2.0 before 8.2.24; from 8.3.0 before 8.3.12
- php-min (Bitnami): before 8.1.30; from 8.2.0 before 8.2.24; from 8.3.0 before 8.3.12

## Every score

- php: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/php/php-src/security/advisories/GHSA-94p6-54jq-9mwp> (exploit, advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20241101-0003/> (web)
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00011.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-8927> (web)

## Sources

- CVE List: [CVE-2024-8927](https://www.cve.org/CVERecord?id=CVE-2024-8927), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2024-8927](https://nvd.nist.gov/vuln/detail/CVE-2024-8927), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPHP-2024-8927](https://osv.dev/vulnerability/BIT-LIBPHP-2024-8927), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-2024-8927](https://osv.dev/vulnerability/BIT-PHP-2024-8927), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2024-8927](https://osv.dev/vulnerability/BIT-PHP-MIN-2024-8927), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-8927 · Whole record: https://cve.day/CVE-2024-8927.json · Rebuilt by cve.day 2026-11-25T22:58:46.159Z
