CVE-2024-4577

CriticalCVSS 9.8/10Known exploited (CISA KEV)Last modified Jun 17, 2026

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.

Metrics

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

Weakness enumeration

Affected software

VendorProductVersions
PHP GroupPHP>= 8.1.*, < 8.1.29; >= 8.2.*, < 8.2.20; >= 8.3.*, < 8.3.8
php_groupphp>= 8.1.0, < 8.1.29
php_groupphp>= 8.2.0, < 8.2.20
php_groupphp>= 8.3.0, < 8.3.8

References

Timeline

Published
Jun 9, 2024
Last modified
Jun 17, 2026
Added to CISA KEV
Jun 12, 2024
NVD status
Analyzed

Related CVEs from 2024

CVE-2024-457704.4A vulnerability was found in Performance Co-Pilot (PCP). This flaw can only be exploited if an attacker has access to a compromised PCP systCVE-2024-457719.8RapidCMS v1.3.1 was discovered to contain a SQL injection vulnerability via the password parameter at /resource/runlogin.php.CVE-2024-457728.0Deserialization of Untrusted Data vulnerability in Apache Lucene Replicator. This issue affects Apache Lucene's replicator module: from 4.4CVE-2024-457737.5A use-after-free vulnerability involving upgradeToRocket requests can cause the application to crash or potentially result in code executionCVE-2024-457746.7A flaw was found in grub2. A specially crafted JPEG file can cause the JPEG parser of grub2 to incorrectly check the bounds of its internal CVE-2024-457755.2A flaw was found in grub2 where the grub_extcmd_dispatcher() function calls grub_arg_list_alloc() to allocate memory for the grub's argumentCVE-2024-457766.7When reading the language .mo file in grub_mofile_open(), grub2 fails to verify an integer overflow when allocating its internal buffer. A cCVE-2024-457776.7A flaw was found in grub2. The calculation of the translation buffer when reading a language .mo file in grub_gettext_getstr_from_position()CVE-2024-457785.5A stack overflow flaw was found when reading a BFS file system. A crafted BFS filesystem may lead to an uncontrolled loop, causing grub2 to CVE-2024-457796.0An integer overflow flaw was found in the BFS file system driver in grub2. When reading a file with an indirect extent map, grub2 fails to vCVE-2024-45788.4This Advisory describes an issue that impacts Arista Wireless Access Points. Any entity with the ability to authenticate via SSH to an affecCVE-2024-457806.7A flaw was found in grub2. When reading tar files, grub2 allocates an internal buffer for the file name. However, it fails to properly verif
CVE-2024-4577: Critical severity, CVSS 9.8 | Vulnix