PHP Group · PHP · CWE-78 · published 2024-06-09

CVE-2024-4577PHP-CGI OS Command Injection Vulnerability

Patch today Known exploited and used in ransomware campaigns.

CVE-2024-4577 is actively exploited in the wild: CISA added it to the Known Exploited Vulnerabilities catalog on 2024-06-12, and it is known to be used in ransomware campaigns. EPSS estimates a 100% chance of exploitation in the next 30 days, higher than 99% of all CVEs. This PHP vulnerability: CVSS 9.8 (v3.1), attacks can be automated, a successful attack gives total control of the component. CISA’s required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. US federal agencies must remediate by 2024-07-03. Patch today.

Share this

Remediation#

CISA required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. (federal due date 2024-07-03)

Linux distribution packages

If you run the distro’s package rather than an upstream build, this is the version to look for.

DistroReleasePackageStatus
Debian12 bookwormphp8.2Not affected
Red Hat Enterprise LinuxRHEL 10phpNot affected
RHEL 9phpNot affected
RHEL 8phpNot affected
RHEL 7phpNot affected
RHEL 6phpNot affected

From the Debian Security Tracker, Ubuntu security notices (CC BY-SA 4.0) and Red Hat Security Data (CC BY 4.0). Check the distro link before acting.

Patch events

  1. Patch todayExploited (KEV)CISA due 2024-07-03

    Language runtimePHP

    -CGI OS Command InjectionCVE-2024-4577

    Why: Known exploited and used in ransomware campaigns.

Exploit intelligence#

SignalValueSource
Known exploitedYes, added 2024-06-12CISA KEV
Ransomware useKnownCISA KEV
EPSS (30-day exploitation probability)100% (100th pct)FIRST EPSS v2026.06.15
CVSS base score9.8 (v3.1)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA / CISA ADP
SSVC exploitationactiveCISA Vulnrichment
SSVC automatableYesCISA Vulnrichment
SSVC technical impacttotalCISA Vulnrichment

Weakness: CWE-78: Improper Neutralization of Special Elements used in an OS Command

More from this vendor: all PHP Group vulnerabilities · recent KEV additions

Affected versions (from the CVE record)#

Description (from the CVE record)#

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.

Quoted from the CVE Program record.

Elsewhere#

Distro status: Debian · Ubuntu · Red Hat · Alpine

Something wrong on this page?
Anonymous. Reports are checked against the primary source.

Also on today's list

See today's list → · Coming up →