{"answers":{"affected":"3 open source packages ship an affected version, including libphp, php and php-min. It affects 2 products.","exploited":"Yes. Attackers have exploited CVE-2024-4577 in the wild since at least 12 Jun 2024, including in ransomware campaigns.","fix":"Upgrade libphp to a fixed version for your release line: 8.1.29, 8.2.20 or 8.3.8. US federal agencies must fix it by 3 Jul 2024.","what":"CVE-2024-4577 is a critical command injection vulnerability in Fedoraproject Fedora, published on 9 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-4577 and fix it if it is affected.\n\nWhat it is: CVE-2024-4577 is a critical command injection vulnerability in Fedoraproject Fedora, published on 9 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2024-4577 in the wild since at least 12 Jun 2024, including in ransomware campaigns.\n\nAffected packages and fixed versions:\n- libphp (Bitnami): affected all versions; fixed in 8.1.29, 8.2.20, 8.3.8\n- php (Bitnami): affected all versions; fixed in 8.1.29, 8.2.20, 8.3.8\n- php-min (Bitnami): affected all versions; fixed in 8.1.29, 8.2.20, 8.3.8\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-4577/ (Markdown: https://insights.sbomify.com/CVE-2024-4577/index.md)","id":"CVE-2024-4577","markdown":"https://insights.sbomify.com/CVE-2024-4577/index.md","name":"CVE-2024-4577","record":{"aliases":["AZL-42424","AZL-42433","BIT-libphp-2024-4577","BIT-php-2024-4577","BIT-php-min-2024-4577","ECHO-96a3-1302-f796","GHSA-3qgc-jrrr-25jv","GHSA-vxpp-6299-mxw3"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"PHP CGI","requires_auth":"none","summary":"Attackers can execute arbitrary code or read source code via argument injection in PHP-CGI on Windows with specific code pages.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"php","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"php","vendor":"php"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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.","ecosystems":["Bitnami"],"exploits":{"exploitdb":1,"first_seen":"2024-06-06","github_poc":71,"max_poc_stars":324,"metasploit":1,"nuclei":1,"refs":[{"date":"2024-06-07T09:52:54Z","kind":"github_poc","ref":"https://github.com/watchtowrlabs/CVE-2024-4577","stars":324,"title":"PHP CGI Argument Injection (CVE-2024-4577) Remote Code Execution PoC"},{"date":"2024-06-08T13:04:45Z","kind":"github_poc","ref":"https://github.com/xcanwin/CVE-2024-4577-PHP-RCE","stars":161,"title":"[漏洞复现] 全球首款利用PHP默认环境（XAMPP）的CVE-2024-4577 PHP-CGI RCE 漏洞 EXP。"},{"date":"2024-06-07T05:50:23Z","kind":"github_poc","ref":"https://github.com/TAM-K592/CVE-2024-4577","stars":75,"title":"CVE-2024-4577 is a critical vulnerability in PHP affecting CGI configurations, allowing attackers to execute arbitrary commands via crafted URL parameters."},{"date":"2025-03-15T11:21:52Z","kind":"github_poc","ref":"https://github.com/Night-have-dreams/php-cgi-Injector","stars":52,"title":"一個測試CVE-2024-4577和CVE-2024-8926的安全滲透工具"},{"date":"2024-06-07T09:51:39Z","kind":"github_poc","ref":"https://github.com/11whoami99/CVE-2024-4577","stars":43,"title":"POC \u0026 $BASH script for CVE-2024-4577"},{"date":"2024-06-09T14:18:21Z","kind":"github_poc","ref":"https://github.com/Chocapikk/CVE-2024-4577","stars":35,"title":"PHP CGI Argument Injection vulnerability"},{"date":"2024-06-08T12:23:35Z","kind":"github_poc","ref":"https://github.com/ZephrFish/CVE-2024-4577-PHP-RCE","stars":33,"title":"PHP RCE PoC for CVE-2024-4577 written in bash, go, python and a nuclei template"},{"date":"2024-08-20T02:56:03Z","kind":"github_poc","ref":"https://github.com/gh-ost00/CVE-2024-4577-RCE","stars":25,"title":"PHP CGI Argument Injection (CVE-2024-4577) RCE"}],"tier":"exploited"},"has_fix":true,"headline":"PHP-CGI OS Command Injection","id":"CVE-2024-4577","indexable":true,"kev":{"dateAdded":"2024-06-12","dueDate":"2024-07-03","knownRansomwareCampaignUse":"Known","product":"PHP","requiredAction":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","vendorProject":"PHP Group","vulnerabilityName":"PHP-CGI OS Command Injection Vulnerability"},"kind":"cve","links":{"ecosystem":"Bitnami","product":"fedoraproject:fedora","products":["fedoraproject:fedora","php:php"],"type":"command_injection","year":"2024"},"n_packages":3,"n_references":19,"next":{"headline":"Privilege escalation in Arista Wireless Access Points","id":"CVE-2024-4578"},"packages":[{"ecosystem":"Bitnami","fixed":["8.1.29","8.2.20","8.3.8"],"introduced":["0","8.2.0","8.3.0"],"last_affected":[],"package":"libphp","purl":"pkg:bitnami/libphp","source":"BIT-libphp-2024-4577"},{"ecosystem":"Bitnami","fixed":["8.1.29","8.2.20","8.3.8"],"introduced":["0","8.2.0","8.3.0"],"last_affected":[],"package":"php","purl":"pkg:bitnami/php","source":"BIT-php-2024-4577"},{"ecosystem":"Bitnami","fixed":["8.1.29","8.2.20","8.3.8"],"introduced":["0","8.2.0","8.3.0"],"last_affected":[],"package":"php-min","purl":"pkg:bitnami/php-min","source":"BIT-php-min-2024-4577"}],"prev":{"headline":"TIBCO EBX File Inclusion Vulnerability","id":"CVE-2024-4576"},"products":["PHP"],"published":"2024-06-09","related":[{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2021-39226","kev_date_added":"2022-08-25","published":"2021-10-05"},{"cvss_score":9.8,"headline":"VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow","id":"CVE-2019-5544","kev_date_added":"2021-11-03","published":"2019-12-06"},{"cvss_score":9.6,"headline":"Google Chromium V8 Type Confusion","id":"CVE-2024-4947","kev_date_added":"2024-05-20","published":"2024-05-15"},{"cvss_score":9.6,"headline":"Google Chromium Visuals Use-After-Free","id":"CVE-2024-4671","kev_date_added":"2024-05-13","published":"2024-05-09"},{"cvss_score":9.6,"headline":"Google Chromium Mojo Insufficient Data Validation","id":"CVE-2022-3075","kev_date_added":"2022-09-08","published":"2022-09-26"},{"cvss_score":9.6,"headline":"Google Chromium Indexed DB API Use-After-Free","id":"CVE-2021-30633","kev_date_added":"2021-11-03","published":"2021-10-08"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["PHP Group"]},"summary":"Attackers can execute arbitrary code or read source code via argument injection in PHP-CGI on Windows with specific code pages.","url":"https://insights.sbomify.com/CVE-2024-4577/"}