Red Hat VEX
RHVEX-CVE-2024-8927
php: cgi.force_redirect configuration is bypassable due to the environment variable collision
Details
A flaw was found in PHP. The configuration directive cgi.force_redirect prevents anyone from calling PHP directly with a URL such as http://host.example/cgi-bin/php/secretdir/script.php. However, in certain uncommon configurations, an attacker may be able to bypass this restriction and access php-cgi directly.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:7 | php | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-bcmath | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-cli | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-common | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-dba | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-embedded | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-enchant | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-fpm | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-gd | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-intl | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-ldap | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-mbstring | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-mysql | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-mysqlnd | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-odbc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-pdo | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-pgsql | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-process | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-pspell | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-recode | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-snmp | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-soap | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-xml | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | php-xmlrpc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | apcu-panel | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | libzip | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | libzip-devel | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | libzip-tools | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-bcmath | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-cli | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-common | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-dba | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-dbg | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-devel | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-embedded | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-enchant | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-ffi | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-fpm | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-gd | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-gmp | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-intl | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-json | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-ldap | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-mbstring | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-mysqlnd | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-odbc | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-opcache | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-pdo | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-pear | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-pecl-apcu | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-pecl-apcu-devel | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-pecl-rrd | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-pecl-xdebug | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-pecl-xdebug3 | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-pecl-zip | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-pgsql | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-process | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-recode | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-snmp | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-soap | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-xml | All versions, will not be fixed |
| Red Hat:enterprise_linux:8 | php-xmlrpc | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2024-8927
- https://bugzilla.redhat.com/show_bug.cgi?id=2317051
- https://www.cve.org/CVERecord?id=CVE-2024-8927
- https://nvd.nist.gov/vuln/detail/CVE-2024-8927
- https://github.com/php/php-src/commit/48808d98f4fc2a05193cdcc1aedd6c66816450f1
- https://github.com/php/php-src/security/advisories/GHSA-94p6-54jq-9mwp