Skip to main content
HIGH

CVE-2024-8927

CVSS v3

7.5

HIGH

EPSS Score

1.1 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for php.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • phpBitnamiall versions · fixed in 8.1.30and 2 other packages
  • apcu-panelAlmaLinux:8all versions · fixed in 5.1.18-1.module_el8.6.0+2750+78feabcband 1 other package
  • libzipAlmaLinux:8all versions · fixed in 1.6.1-1.module_el8.10.0+3935+28808425and 1 other package
  • libzip-develAlmaLinux:8all versions · fixed in 1.6.1-1.module_el8.6.0+3239+bedf0508
  • phpAlmaLinux:9all versions · fixed in 8.1.30-1.module_el9.5.0+131+62ecd687and 24 other packages
  • phpAlmaLinux:8all versions · fixed in 7.4.33-2.module_el8.10.0+3935+28808425and 26 other packages
  • php-pearAlmaLinux:8all versions · fixed in 1:1.10.13-1.module_el8.10.0+3935+28808425
  • php-pecl-apcuAlmaLinux:9all versions · fixed in 5.1.21-1.module_el9.1.0+15+94ba28e4and 2 other packages

8 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-8927 Red Hat Product Security1,303 products fixed · 73 known affected

    php: cgi.force_redirect configuration is bypassable due to the environment variable collision

    php as a component of Red Hat Enterprise Linux 7 · php-bcmath as a component of Red Hat Enterprise Linux 7 · php-cli as a component of Red Hat Enterprise Linux 7

  • RHSA-2025:7315 Red Hat Product Security201 products fixed

    Red Hat Security Advisory: php security update

  • RHSA-2024:10950 Red Hat Product Security258 products fixed

    Red Hat Security Advisory: php:8.1 security update

  • RHSA-2024:10952 Red Hat Product Security301 products fixed

    Red Hat Security Advisory: php:7.4 security update

  • RHSA-2024:10951 Red Hat Product Security285 products fixed

    Red Hat Security Advisory: php:8.2 security update

  • RHSA-2024:10949 Red Hat Product Security258 products fixed

    Red Hat Security Advisory: php:8.2 security update

Full record on NVD

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.

Technical details

Published
2024-10-08

Frequently asked questions

What is CVE-2024-8927?

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.

Is CVE-2024-8927 actively exploited?

Active exploitation of CVE-2024-8927 has not been confirmed. Its EPSS score was 1.1% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-8927?

CVE-2024-8927 has a CVSS v3 base score of 7.5 (HIGH severity).

Running php? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month