Skip to main content
CVE-2024-8927VulnerabilityPublished Updated

CVE-2024-8927: PHP · Vulnerability

Affects PHPSource CVE Database V5

0

Not known to be exploited · CVSS 7.5 High · fixed in 8.3.12 : patch PHP soon.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.0% chance of exploitation in 30 days – higher than 64% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 8.3.12, 8.2.24, 8.1.30
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Oct 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Upgrade php/php-src to 8.3.12, 8.2.24 or 8.1.30.

Affected software

ProductAffectedFixed in
GitHubphp/php-srcpkg:github/php/php-srcOther threatsAffected
  • >=8.1.0 <8.1.30
  • >=8.2.0 <8.2.24
  • >=8.3.0 <8.3.12
Fixed in
  • 8.1.30
  • 8.2.24
  • 8.3.12

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. 2. In the interim, review and harden the web server and PHP CGI configurations to ensure that cgi.force_redirect is enabled and properly enforced. 3. Implement strict input validation and sanitization on HTTP headers to reduce the risk of header manipulation. 4. Restrict direct access to the PHP CGI binary by configuring web server access controls and firewall rules. 5. Monitor web server logs for suspicious requests that attempt to manipulate HTTP_REDIRECT_STATUS or other environment variables. 6. Employ web application firewalls (WAFs) with rules designed to detect and block attempts to exploit this vulnerability. 7. Conduct regular vulnerability scanning and penetration testing focused on PHP CGI configurations. 8. Educate development and operations teams about secure PHP deployment practices, especially regarding CGI mode. 9. Isolate critical web applications and sensitive data to minimize exposure in case of exploitation. 10. Maintain an incident response plan to quickly address any exploitation attempts or breaches.

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.

References

Community reviews

Loading reviews…