CVE-2024-4577KEV · OVERDUECWE-78

Argument Injection in PHP-CGI

Critical · published June 9, 2024

Patch now

Confirmed exploited, and the score agrees

CVSS calls it critical at 9.8. It is confirmed in active exploitation. It sits in the 100.0th percentile for exploit probability.

842
days past CISA
deadline
CVSS v3.1
9.8
EPSS
100%
Percentile
100.0
In the wild
Confirmed
What it is

🔥 A crafty quirk in PHP on Windows could let attackers slip in like a cat burglar, exploiting misinterpreted command line options to run arbitrary PHP code! ⚠️ Think of it like a restaurant where the waiter misreads your order due to a language barrier, serving you the wrong dish. In this case, it’s a server that mistakenly interprets command line characters as PHP options, leading to chaos in the kitchen! An attacker could potentially access the source code of sensitive scripts, execute malicious PHP code, and gain control over the server. This isn't just a minor oversight; it's an all-access pass to your system that could lead to absolutely devastating consequences!

Put simply

Think of it like a restaurant where the waiter misreads your order due to a language barrier, serving you the wrong dish. In this case, it’s a server that mistakenly interprets command line characters as PHP options, leading to chaos in the kitchen! This vulnerability exists in PHP versions 8.1.* prior to 8.1.29, 8.2.* prior to 8.2.20, and 8.3.* prior to 8.3.8 when using Apache and PHP-CGI on Windows. The 'Best-Fit' behavior in Windows causes certain characters in command line arguments to be misinterpreted, allowing attackers to inject PHP options improperly.

What to do

An attacker could potentially access the source code of sensitive scripts, execute malicious PHP code, and gain control over the server. This isn't just a minor oversight; it's an all-access pass to your system that could lead to absolutely devastating consequences! To protect yourself, upgrade PHP to version 8.1.29, 8.2.20, or 8.3.8 at your earliest convenience. Review your system configurations to ensure that these vulnerable versions are not in use anymore. And always validate command line inputs to mitigate risks! You've got this! With a quick update and some vigilance, you can secure your server in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.99987 · 100.0th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2024-06-09T19:42Z
KEV added
2024-06-12 · due 2024-07-03
EPSS history
Timeline
  • 12 JUN 00:00Z
    Added to CISA KEV — remediate by Jul 3
    kev
  • 09 JUN 19:42Z
    Argument Injection in PHP-CGI
    cvelistv5