Skip to content
CVE Tracker
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API documentationPage
  • MCP serverPage
  • Data sourcesPage
  • ChangelogPage
  • AboutPage
  • How it's builtPage
Back

CVE-2024-4577

Argument Injection in PHP-CGI

Critical9.8Known exploitedEPSS 100.0%
Published
Updated
Reserved
Assigned by
php

Description

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.

Exploited in the wild

CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as PHP-CGI OS Command Injection Vulnerability.

Added
12 Jun 2024
Fix due (US federal)
3 Jul 2024
Used by ransomware
Known

Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

Scores

CVSS scores of CVE-2024-4577, by who scored it
Scored byCVSSScoreVector
phpCNA (assigner)3.1Critical9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVDNVD · Analyzed3.1Critical9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (exploitation in 30 days)
100.0% · top 0.1% of all CVEs (6 Nov 2026)
CISA SSVC
Exploitation: active · Automatable: yes · Technical impact: total
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.

Weakness

Affected products

  • PHP Group · PHP

    • affected 8.1.* – < 8.1.29
    • affected 8.2.* – < 8.2.20
    • affected 8.3.* – < 8.3.8

References (23)

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2024-4577 badge
[![CVE-2024-4577](https://trackcve.app/badge/CVE-2024-4577.svg)](https://trackcve.app/cve/CVE-2024-4577)

Record last updated .