Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
📦
📦 Bitnami
CISA KEV · ACTIVELY EXPLOITED
CRITICAL severity

CVE-2024-4577 — libphp

CRITICALFix: rapid7/metasploit-framework#19247

CVE-2024-4577 is a critical-severity (CVSS 9.8) OS Command Injection vulnerability in libphp. It is in CISA's Known Exploited Vulnerabilities catalog (added 2024-06-12) and has been used in ransomware campaigns — treat it as actively exploited and patch now. A fix is available for libphp — see the affected versions and patch details below.

Argument Injection in PHP-CGI

Also known asBIT-libphp-2024-4577BIT-php-2024-4577BIT-php-min-2024-4577GHSA-3qgc-jrrr-25jv
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
56 known
Exploitation data as of Oct 23, 2026 · OSV.dev, NVD, CISA KEV, FIRST.org (EPSS)

Exploitation Status

Actively exploited in the wild

  • Confirmed by CISA's Known Exploited Vulnerabilities catalog on 2024-06-12 — including use in ransomware campaigns. Federal agencies were required to remediate by 2024-07-03.
  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • A successful exploit gives an attacker total control of the affected component, not partial access.

Exploitation and automatability from CISA (KEV catalog and SSVC triage) for CVE-2024-4577.

EPSS Exploitation Probability

via FIRST.org ↗
100.0%probability of exploitation in next 30 days
Very High Risk0.00%
Lower risk than most CVEs100th percentile — riskier than 100% of all scored CVEsHighest risk
92.7%95.1%97.6%100.0%94.4%100.0%Apr 26Aug 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2024-4577 by exploitation likelihood (EPSS) against impact (CVSS). In the shaded patch-first corner (EPSS 50%+, CVSS 7.0+).

Where this sits among everything scored

Of 395,249 CVEs with a current EPSS score, this one falls in the ≥ 90% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

1 pkg affected
📦libphp

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Bitnami packages — download data is not available via public APIs for these ecosystems.

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.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
📦Bitnamilibphp≥ 8.2.0&&< 8.1.298.1.29

Affected Products

2 products · 5 configurations
OS
fedorafedoraproject
2 versions
3940
Application
phpphp
≥ 8.3.0 && < 8.3.8
range
Exploits & PoCs
56

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

EDB-52331webappsphp

PHP CGI Module 8.3.4 - Remote Code Execution (RCE)

by İbrahimsql · Jun 15, 2025

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for libphp, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update libphp to 8.1.29 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-4577 is resolved across your whole dependency graph.

  3. Workarounds

    Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.

How to detect CVE-2024-4577

A community-maintained Nuclei template exists for this CVE. You can scan for it directly:

nuclei -id cve-2024-4577 -u https://target
Template
PHP CGI - Argument Injection
Severity
critical
Impact
Successful exploitation could lead to remote code execution on the affected system.
Remediation
Apply the vendor-supplied patches or upgrade to a non-vulnerable version.

Template by ProjectDiscovery nuclei-templates (Hüseyin TINTAŞ, sw0rk17, s4e-io), MIT licensed. View the full template. Scan only systems you are authorised to test.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatCritical

No Red Hat products are affected by this CVE.

Workaround published by Red Hat
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Source: Red Hat security advisory for CVE-2024-4577 (CC BY 4.0)

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2024-4577 in your dependencies?

Find it across Bitnami, including transitive dependencies.

Actively Exploited: CVE-2024-4577: libphp (Critical 9.8)