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

Exp

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.

Published: 2024-10-08 Last update: 2025-11-03 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2024-8927 is rated High Exploit Risk (64.9/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.34%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2024-8927

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2024-8927

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-01 0.45% 0.34% -0.10%
2 2026-03-12 0.48% 0.45% -0.03%
3 2026-02-27 0.48%

Full EPSS history (18 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2024-8927

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 3.6 [email protected]
7.5 3.1 HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 3.6 [email protected]

Weakness enumeration for CVE-2024-8927

OS Trackers for CVE-2024-8927

vendor priority summary link
alpine CVE-2024-8927: 2 source package rows (php82, php83); 2 state rows across 1 repos (3.20-community); fixed 2, open 0. https://security.alpinelinux.org/vuln/CVE-2024-8927
debian not yet assigned CVE-2024-8927 not yet assigned priority: Debian including 2 source packages (php7.4, php8.2), 2 status rows across 2 suites (bookworm, bullseye): resolved 2. https://security-tracker.debian.org/tracker/CVE-2024-8927
gentoo high CVE-2024-8927: 1 GLSA(s) (202501-11), 1 atom(s) (dev-lang/php); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2024-8927
redhat medium https://access.redhat.com/security/cve/CVE-2024-8927
suse medium CVE-2024-8927 severity moderate: SUSE including 393 source package names (8.2.24-44.6:apache2-mod_php8-8.2.24-150600.3.6.1, 8.2.24-44.6:php8-8.2.24-150600.3.6.1, …), 832 product×package rows across 21 product lines (Container bci/php, Container bci/php-apache, … (21 product lines)): Fixed 832. https://www.suse.com/security/cve/CVE-2024-8927/
ubuntu medium CVE-2024-8927 medium priority: Ubuntu including 6 source packages (php5, php7.0, php7.2, php7.4, php8.1, php8.3), 33 status rows across 8 suites (bionic, focal, jammy, noble, oracular, trusty, upstream, xenial): DNE 20, released 9, needs-triage 4. https://ubuntu.com/security/CVE-2024-8927

Affected software / configurations for CVE-2024-8927

Vendor Product Version Raw CPE
php php >= 8.1.0, < 8.1.30 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php >= 8.2.0, < 8.2.24 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php >= 8.3.0, < 8.3.12 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*

References for CVE-2024-8927

cvelogic Threat Intelligence