CVE-2024-8927: cgi.force_redirect configuration is bypassable due to the environment variable collision
Vulnerability summary
CVE-2024-8927 is a high (CVSS 7.5) vulnerability in php group php. EPSS estimates a 1.05% chance of exploitation in the next 30 days, higher than 64.4% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 16 · Related 10Timeline
- 08-10-2024PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · WolfiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
1.05%
Chance of exploitation in the next 30 days
Percentile
64%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.05% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundPhp Src
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu6 products
- php5< 5.5.9+dfsg-1ubuntu4.29+esm16
- php7.0< 7.0.33-0ubuntu0.16.04.16+esm12
- php7.2< 7.2.24-0ubuntu0.18.04.17+esm6
- php7.4< 7.4.3-4ubuntu2.24
- php8.1< 8.1.2-1ubuntu2.19
Alpine3 products
- php81< 8.1.30-r0
- php82< 8.2.24-r0
- php83< 8.3.12-r0
Chainguard1 product
- php-8.1< 8.1.30-r0
Debian1 product
- php8.2< 8.2.24-1~deb12u1
Php1 product
- php≥ 8.1.0, < 8.1.30 | ≥ 8.2.0, < 8.2.24 | ≥ 8.3.0, < 8.3.12
Php group1 product
- php≥ 8.1.*, < 8.1.30 | ≥ 8.2.*, < 8.2.24 | ≥ 8.3.*, < 8.3.12
Wolfi1 product
- php-8.1< 8.1.30-r0
7 vendors · 14 products