[KEV] OS Command Injection in Php group libphp (CVE-2024-4577)
Summary
OS command injection in Php group libphp (CVE-2024-4577). Risk of unauthorized operations or information disclosure. Listed in CISA KEV — actively exploited. Mitigation: upgrade to `8.1.29, 8.2.20, 8.3.8` or later.
AI summary snake-internal / snake-material-v2
Response Actions (7 steps)
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'libphp' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `libphp` を grep し、稼働しているサービス・バージョンを把握する。
-
4Consider incident declaration escalate
Notify SOC / on-callCISA KEV登録済 = 実環境で悪用が観測されている。Step 3 で兆候があればインシデント対応宣言、無くてもパッチ適用までWAF強化を最優先で。
-
6Apply patch patch
Upgrade libphp to 8.1.29, 8.2.20, 8.3.8ステージング環境で 8.1.29, 8.2.20, 8.3.8 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
References
- web https://nvd.nist.gov/vuln/detail/CVE-2024-4577
- web http://www.openwall.com/lists/oss-security/2024/06/07/1
- web https://arstechnica.com/security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-windows-servers/
- web https://blog.orange.tw/2024/06/cve-2024-4577-yet-another-php-rce.html
- web https://blog.talosintelligence.com/new-persistent-attacks-japan/
- web https://cert.be/en/advisory/warning-php-remote-code-execution-patch-immediately
- web https://devco.re/blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnerability-en/
- web https://github.com/11whoami99/CVE-2024-4577
- web https://github.com/php/php-src/security/advisories/GHSA-3qgc-jrrr-25jv
- web https://github.com/rapid7/metasploit-framework/pull/19247
- web https://github.com/watchtowrlabs/CVE-2024-4577
- web https://github.com/xcanwin/CVE-2024-4577-PHP-RCE
- web https://isc.sans.edu/diary/30994
- web https://labs.watchtowr.com/no-way-php-strikes-again-cve-2024-4577/
- web https://lists.fedoraproject.org/archives/list/[email protected]/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/
- web https://lists.fedoraproject.org/archives/list/[email protected]/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/
- web https://security.netapp.com/advisory/ntap-20240621-0008/
- web https://www.imperva.com/blog/imperva-protects-against-critical-php-vulnerability-cve-2024-4577/
- web https://www.php.net/ChangeLog-8.php#8.1.29
- web https://www.php.net/ChangeLog-8.php#8.2.20
- web https://www.php.net/ChangeLog-8.php#8.3.8
- web https://www.vicarius.io/vsociety/posts/php-cgi-argument-injection-to-rce-cve-2024-4577
- web https://www.vicarius.io/vsociety/posts/php-cgi-os-command-injection-vulnerability-cve-2024-4577
- web https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-4577