Skip to content

Known exploited

Is your fleet exposed to CVE-2024-4577?

PHP-CGI OS Command Injection Vulnerability. CVE-2024-4577 is in CISA's catalog of vulnerabilities known to be exploited, and it affects packages on 1 Linux release that SysWard tracks. A host is exposed while it has a build older than the fixed version for its release.

Added to CISA's catalog
June 12, 2024
Due date for US federal agencies
July 3, 2024
Used in ransomware
Known
Affected software
PHP Group PHP

What it is

PHP, specifically Windows-based PHP used in CGI mode, contains an OS command injection vulnerability that allows for arbitrary code execution. This vulnerability is a patch bypass for CVE-2012-1823.

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,...

From a distribution's security advisory

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

Affected Linux releases

Pick your release for the full list of affected packages and the commands to check and update a host.

ReleaseAffected packagesFixed in
SLES 16 apache2-mod_php8, php8, php8-bcmath and 50 more 8.4.10-160000.2.2

Releases not listed either are not affected, are past their vendor's support, or are not ones SysWard has security data for.

Why the version number alone can mislead

Long-lived distributions fix a vulnerability in the version they already ship and raise only their own build number. Comparing your package's upstream version with the release where the project fixed the bug gives the wrong answer in both directions. Compare against the fixed build for your release, which is what the release pages list.

Know which of your hosts are affected

SysWard's agent reports the packages installed on each server and matches them against each distribution's own security data, so you see which hosts still have a vulnerable build, and can patch them from the same screen. Free for five servers.

Get started free Check one server now, no signup