CVE-2024-8927 cgi.force_redirect configuration is bypassable due to the environment variable collision
HighCVSS 7.5
EPSS 1.1%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft cbl mariner | < 8.1.30-1 | 8.1.30-1 |
| Microsoft azure linux | < 8.3.12-1 | 8.3.12-1 |
| debian/php8.2(Debian:12) | < 8.2.24-1~deb12u1 | 8.2.24-1~deb12u1 |
| debian/php8.2(Debian:12) | = 8.2.10-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.10-2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.12-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.16-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.16-2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.17-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.18-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.18-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.20-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.20-2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.20-3 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.21-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.23-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.5-2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.7-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.7-1.1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.7-1.2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.7-1~deb12u1 | No fix listed |
| ubuntu/php8.1(Ubuntu:22.04) | < 8.1.2-1ubuntu2.19 | 8.1.2-1ubuntu2.19 |
| PHP | < 8.1.30 | 8.1.30 |
| PHP | < 8.2.24 | 8.2.24 |
| PHP | < 8.3.12 | 8.3.12 |
Show 7 more
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP | >= 8.1.0, < 8.1.30 | 8.1.30 |
| PHP | >= 8.2.0, < 8.2.24 | 8.2.24 |
| PHP | >= 8.3.0, < 8.3.12 | 8.3.12 |
| alpine/php81(Alpine:v3.19) | < 8.1.30-r0 | 8.1.30-r0 |
| alpine/php82(Alpine:v3.20) | < 8.2.24-r0 | 8.2.24-r0 |
| alpine/php83(Alpine:v3.20) | < 8.3.12-r0 | 8.3.12-r0 |
| ubuntu/php8.3(Ubuntu:24.04) | < 8.3.6-0ubuntu0.24.04.2 | 8.3.6-0ubuntu0.24.04.2 |
References
- MSRC Security Update Guide vendor-advisory
- php vendor-advisory
- Debian Security Tracker CVE-2024-8927 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7049-1 vendor-advisory
- USN-7049-2 vendor-advisory
- USN-7049-3 vendor-advisory
- www.cve.org
- github.com exploit vendor-advisory
- security.netapp.com
- lists.debian.org
- security.alpinelinux.org vendor-advisory