Back to CVE records
Critical 9.8Known exploited (CISA KEV)Published Jun 9, 2024

CVE-2024-4577Argument Injection in PHP-CGI

Updated under an hour ago ()

Does this affect you?

It affects PHP Group PHP and 2 other products. Add what you run to find out whether that includes you.

CISA lists it as known exploited since Jun 12, 2024; federal agencies had to remediate by Jul 3, 2024, and it is known to be used in ransomware. Treat that date as your deadline.

In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, when using Apache and PHP-CGI on Windows, if the system is set up to use certain code pages, Windows may use "Best-Fit" behavior to replace characters in command line given to Win32 API functions. PHP CGI module may misinterpret those characters as PHP options, which may allow a malicious user to pass options to PHP binary being run, and thus reveal the source code of scripts, run arbitrary PHP code on the server, etc.

CVSS
9.8 CRITICAL (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-78
Known exploited
Added to CISA KEV Jun 12, 2024; federal remediation due Jul 3, 2024; known ransomware useApply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
EPSS (exploitation in the next 30 days)
99.99% (percentile 100)
Assigned by
php
NVD analysis
Analyzed
Record last updated
Oct 21, 2025
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
PHP Group PHP
php_group:php (from the name)
from 8.1.* before 8.1.29; from 8.2.* before 8.2.20; from 8.3.* before 8.3.8
CNA record
php_group php
php_group:php
from 8.1.0 before 8.1.29
CISA ADP
php php
php:php
from 8.1.0 before 8.1.29; from 8.2.0 before 8.2.20; from 8.3.0 before 8.3.8
NVD
fedoraproject fedora
fedoraproject:fedora
39; 40
NVD

References

  • exploit, third-party-advisory
  • third-party-advisory
  • exploit, third-party-advisory
  • exploit, press/media-coverage, third-party-advisory
  • third-party-advisory
  • exploit
  • exploit, third-party-advisory
  • exploit, issue-tracking, patch
  • exploit, third-party-advisory
  • exploit, third-party-advisory
  • release-notes
  • release-notes
  • release-notes
  • third-party-advisory
  • exploit, third-party-advisory
  • mailing-list, third-party-advisory
  • mailing-list
  • mailing-list
  • third-party-advisory
  • exploit, third-party-advisory
  • exploit, third-party-advisory
  • exploit, third-party-advisory
  • us-government-resource

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.