CVE-2024-8927
cgi.force_redirect configuration is bypassable due to the environment variable collision
Reported by php · Published October 8, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php8.3-zip | Amazon Linux | 8.3.16-1.amzn2023.0.1 |
| php8.3-xml | Amazon Linux | 8.3.16-1.amzn2023.0.1 |
| php8.1-bcmath | Amazon Linux | 8.1.31-1.amzn2023.0.1 |
| php8.2-ldap | Amazon Linux | 8.2.27-1.amzn2023.0.1 |
| php8.3-intl | Amazon Linux | 8.3.16-1.amzn2023.0.1 |
| php8.1-opcache | Amazon Linux | 8.1.31-1.amzn2023.0.1 |
| php8.2-bcmath | Amazon Linux | 8.2.27-1.amzn2023.0.1 |
| php8.1-pspell | Amazon Linux | 8.1.31-1.amzn2023.0.1 |
| php8.1-tidy | Amazon Linux | 8.1.31-1.amzn2023.0.1 |
| php8.3-pdo | Amazon Linux | 8.3.16-1.amzn2023.0.1 |
| php8.1-xml | Amazon Linux | 8.1.31-1.amzn2023.0.1 |
| php8.2-pgsql | Amazon Linux | 8.2.27-1.amzn2023.0.1 |
83 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PHP Group | PHP | 8.1.*, 8.2.*, 8.3.* |
| amazon:2023 | php8.3-zip | 0 |
| amazon:2023 | php8.3-xml | 0 |
| amazon:2023 | php8.1-bcmath | 0 |
| amazon:2023 | php8.2-ldap | 0 |
| amazon:2023 | php8.3-intl | 0 |
| amazon:2023 | php8.1-opcache | 0 |
| amazon:2023 | php8.2-bcmath | 0 |
| amazon:2023 | php8.1-pspell | 0 |
| amazon:2023 | php8.1-tidy | 0 |
| amazon:2023 | php8.3-pdo | 0 |
| amazon:2023 | php8.1-xml | 0 |
| amazon:2023 | php8.2-pgsql | 0 |
| amazon:2023 | php8.2-xml | 0 |
| amazon:2023 | php8.1-dba | 0 |
| amazon:2023 | php8.3-dba | 0 |
| amazon:2023 | php8.3-sodium | 0 |
| amazon:2023 | php8.3-gd | 0 |
| amazon:2023 | php8.3-mbstring | 0 |
| alpine | php82 | 0 |
…and 75 more
Timeline
- Sep 26, 2024 CVE Published
- Oct 8, 2024 EPSS Score (30 in total, the first dated here)
- Oct 8, 2024 PoC Published (3 in total, the first dated here)
- Oct 14, 2024 Coalition ESS Score (14 in total, the first dated here)
- Nov 3, 2025 CVE Updated
- Aug 9, 2026 Security Advisory (13 in total, the first dated here)
- Oct 23, 2026 Distribution Patch (8 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-8927
vulnetix vdb fixes CVE-2024-8927
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-8927/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart