Argument Injection in PHP-CGIGHSA-3qgc-jrrr-25jv
Fix: rapid7/metasploit-framework#19247GHSA-3qgc-jrrr-25jv is a 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.
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 GHSA-3qgc-jrrr-25jv.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
libphpReal-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
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦Bitnami | libphp | ≥ 8.2.0&&< 8.1.29 | 8.1.29 |
Affected Products
fedorafedoraprojectphpphpResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
PHP CGI Module 8.3.4 - Remote Code Execution (RCE)
by İbrahimsql · Jun 15, 2025
Detection & mitigation playbook
Open-source dependencyDetect
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.
Fix
Update libphp to 8.1.29 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-3qgc-jrrr-25jv is resolved across your whole dependency graph.
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 GHSA-3qgc-jrrr-25jv
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id ghsa-3qgc-jrrr-25jv -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.
No Red Hat products are affected by this CVE.
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 GHSA-3qgc-jrrr-25jv (CC BY 4.0)
Frequently Asked Questions
Is GHSA-3qgc-jrrr-25jv in your dependencies?
Find it across Bitnami, including transitive dependencies.