Skip to content
Noroxi
NVD / CVE Program· CNA php

CVE-2024-4577: Argument Injection in PHP-CGI

CriticalCVSS 9.8 · v3.1KEVWeaponized Fix available

Noroxi assessment

Priority: Now (action score 99/100)

  • CISA has confirmed exploitation in the wild (Jun 12, 2024); it is known to be used in ransomware campaigns. Remediation deadline for US federal agencies: Jul 3, 2024.
  • A ready-made attack module is public (Metasploit, Nuclei); exploiting it takes no special expertise.
  • Probability of exploitation in the next 30 days: 99.9% (FIRST EPSS); higher than 99.9% of all records.
  • Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
  • According to CISA the attack is automatable: targets can be found by mass scanning.
  • Fixed version: PHP Group PHP 8.1.29, 8.2.20, 8.3.8.

Patch today or shut off access. Upgrade to PHP Group PHP 8.1.29, 8.2.20, 8.3.8 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · CISA KEV · FIRST EPSS

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.

Published
Jun 9, 2024
Updated
Jun 17, 2026
EPSS
99.9% · 99th percentile

Report tools

JSON

Action score

99

Now

Patch today or shut off access.

CVSS
39 / 40 · 9.8 / 10
CISA KEV
30 / 30 · Listed
EPSS
30 / 30 · 99.9%

CISA SSVC decision

Exploitation
active
Automatable
yes
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
9.8
CNA · php
9.8
agree

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Actively exploited in the wild

CISA added this to its Known Exploited Vulnerabilities catalog on Jun 12, 2024. That signals real attacks, not theory.

Remediation deadline for US federal agencies: Jul 3, 2024.

Known to be used in ransomware campaigns.

Get told when this record changes

  • In CISA KEV: exploitation in the wild confirmed
  • Weaponized exploit exists
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2024-4577

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
phpphp
microsoftwindows
fedoraprojectfedora

Using php? Add it to your stack and be the first to know about CVEs like this one. (PHP)

Watch new CVEs for php

When you'll hear from us

  • when a new CVE affecting this product is published
  • when a record in your stack enters KEV or is weaponized

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Versions reported by the vendor

Affected version ranges reported by the assigning authority (php). Independent of NVD's CPE analysis and usually ahead of it.

  • PHP Group PHP

    • 8.1.* and later · before 8.1.29affected · semver
    • 8.2.* and later · before 8.2.20affected · semver
    • 8.3.* and later · before 8.3.8affected · semver

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • php php8.1.0 and later · before 8.1.29
  • php php8.2.0 and later · before 8.2.20
  • php php8.3.0 and later · before 8.3.8

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.19php81before 8.1.29-r08.1.29-r0
Alpine:v3.19php82before 8.2.20-r08.2.20-r0
Alpine:v3.19php83before 8.3.8-r08.3.8-r0
openSUSE:Tumbleweedphp8before 8.3.12-1.18.3.12-1.1

Same product

php: all records

Other highest-scoring records for the same primary product.

  • CVE-2019-11043Underflow in PHP-FPM can lead to RCEKEV
    99Now
  • CVE-2012-1823sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle…KEV
    99Now
  • CVE-2026-109619RCE via stale global stateKEV
    96Now

Published before and after this one in the same product

  • ← EarlierCVE-2024-5585Jun 9, 2024 · Command injection via array-ish $command parameter of proc_open() (bypass CVE-2024-1874 fix)
    44Plan
  • ← EarlierCVE-2024-2408Jun 9, 2024 · PHP is vulnerable to the Marvin Attack
    23Monitor
  • Later →CVE-2024-8925Oct 8, 2024 · Erroneous parsing of multipart form data
    21Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
PHP Group PHP8.1.29Vendor (CNA)
PHP Group PHP8.2.20Vendor (CNA)
PHP Group PHP8.3.8Vendor (CNA)
alpine:php818.1.29-r0 · Alpine:v3.19Package registry (OSV)
alpine:php828.2.20-r0 · Alpine:v3.19Package registry (OSV)
alpine:php838.3.8-r0 · Alpine:v3.19Package registry (OSV)
opensuse:php88.3.12-1.1 · openSUSE:TumbleweedPackage registry (OSV)

Exploit status

Weaponized

A ready exploit tool or active in-the-wild use is known for this vulnerability. This should be your top priority.

Evidence

  • Metasploit module ×1
  • Exploit-DB entry ×1
  • Nuclei detection template ×1
  • Proof-of-concept repository on GitHub ×50

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Proof-of-concept repository on GitHub50 repositories2024-06-07 → 2025-03-15
Exploit-DB entrywebapps2025-06-15
Metasploit moduleexploit/windows/http/php_cgi_arg_injection_rce_cve_2024_4577PHP CGI Argument Injection Remote Code Executionexploit2024-06-06
Nuclei detection templateNuclei template CVE-2024-4577 —

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Metasploit-4 d
  2. First PoC-3 d
  3. Published
  4. CISA KEV+2 d
  5. TodayNov 14, 2026+887 d

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2024-55850 days apartCommand injection via array-ish $command parameter of proc_open() (bypass CVE-2024-1874 fix)
    44Plan
  • CVE-2024-8926121 days apartPHP CGI Parameter Injection Vulnerability (CVE-2024-4577 bypass)
    36Monitor

Not on record for this CVE: EPSS history · patch commit or PR link · public bounty program.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

nvd-primary

Root cause

User input is inserted as text into a shell command. The shell may interpret special characters in the input as part of the command.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
const host = req.body.host;exec("ping -c 1 " + host, onResult);

Fixed

ts
const host = req.body.host;if (!/^[a-z0-9.-]{1,253}$/i.test(host)) return res.sendStatus(400);execFile("ping", ["-c", "1", host], onResult);

References

All records