Skip to content
StratQuad

Threats

PHP-CGI Windows code page character misinterpretation

CVE-2024-4577Known exploitedRansomwareCritical

PHP-CGI on Windows may misinterpret characters in command line arguments when certain code pages are configured, due to Windows 'Best-Fit' character replacement behaviour. An attacker who can control input to PHP-CGI can pass malicious options to the PHP binary, allowing them to reveal script source code or execute arbitrary PHP code on the server. The attacker needs the system to be running Apache with PHP-CGI on Windows using specific code page settings.

Plain English summary of the NVD and CISA text, checked by machine against both.

Scores and dates

CVSS 3.1
9.8
CRITICAL
EPSS score
1.00
Probability of exploitation in 30 days
EPSS percentile
99th
Share of scored CVEs at or below this one
Added to KEV
12 Jun 2024
CISA due date
3 Jul 2024
Applies to US federal agencies

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

Daily EPSS score, 3 Nov to 14 Nov, source FIRST

Detail

PHP Group PHP. CISA required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

Weakness: CWE-78 (opens in a new tab)

Affected versions

  • php php: from 8.1.0, before 8.1.29
  • php php: from 8.2.0, before 8.2.20
  • php php: from 8.3.0, before 8.3.8
  • fedoraproject fedora: 39
  • fedoraproject fedora: 40

Reports naming this CVE2 in total