Vulnerability
CVE-2024-4577
Argument Injection in PHP-CGI
Vulnerability details
- Score
- 9.8
- Severity
- critical
CVSS 3.1 · php
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDescription
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.
CVE ProgramExploit source choices
43 sourcesThis module exploits a PHP CGI argument injection vulnerability affecting PHP in certain configurations on a Windows target. A vulnerable configuration is locale dependant (such as Chinese or Japanese), such that the Unicode best-fit conversion scheme will unexpectedly convert a soft hyphen (0xAD) into a dash (0x2D) character. Additionally a target web server must be configured to run PHP under CGI mode, or directly expose the PHP binary. This issue has been fixed in PHP 8.3.8 (for the 8.3.x branch), 8.2.20 (for the 8.2.x branch), and 8.1.29 (for the 8.1.x branch). PHP 8.0.x and below are end of life and have note received patches. XAMPP is vulnerable in a default configuration, and we can target the /php-cgi/php-cgi.exe endpoint. To target an explicit .php endpoint (e.g. /index.php), the server must be configured to run PHP scripts in CGI mode.
OSCP Cheat Sheet
PHP CGI Argument Injection (CVE-2024-4577) Remote Code Execution PoC
[漏洞复现] 全球首款利用PHP默认环境(XAMPP)的CVE-2024-4577 PHP-CGI RCE 漏洞 EXP。
CVE-2024-4577 is a critical vulnerability in PHP affecting CGI configurations, allowing attackers to execute arbitrary commands via crafted URL parameters.
一個測試CVE-2024-4577和CVE-2024-8926的安全滲透工具
POC & $BASH script for CVE-2024-4577
PHP CGI Argument Injection vulnerability
PHP RCE PoC for CVE-2024-4577 written in bash, go, python and a nuclei template
PHP CGI Argument Injection (CVE-2024-4577) RCE
CVE-2024-4577 RCE PoC
An LFI vulnerability scanning tool
Argument injection vulnerability in PHP
A PoC exploit for CVE-2024-4577 - PHP CGI Argument Injection Remote Code Execution (RCE)
Proof Of Concept RCE exploit for critical vulnerability in PHP <8.2.15 (Windows), allowing attackers to execute arbitrary commands.
PoC - PHP CGI Argument Injection CVE-2024-4577 (Scanner and Exploit)
CVE-2024-4577
ATTACK PoC - PHP CVE-2024-4577
CVE-2024-4577 Mass Scanner & Exploit Tool
longhoangth18/cve-2024-4577 source repository
Fixed and minimalist PoC of the CVE-2024-4577
CVE-2024-4577 Exploit POC
A Bash script designed to scan multiple domains for the CVE-2024-4577 vulnerability in PHP-CGI.
Exploit (C) CVE-2024-4577 on PHP CGI
POC for CVE-2024-4577 with Shodan integration
phirojshah/cve-2024-4577 source repository
12442rf/poc source repository
A super simple Cisa KEV lookup CLI tool leveraging DuckDB
Bash toolkit that finds and fixes PHP CVEs — PHP2Shell (CVE-2026-109618/109619), CVE-2026-115560, CVE-2024-4577, CVE-2019-11043 — on Linux and macOS. Detects runtimes, audits config, applies source patches, hardens php.ini / FPM / nginx / Apache, hunts compromise, rolls back cleanly. MIT.
Dependency-free toolkit that contains, patches and verifies the *2Shell families: PHP2Shell (CVE-2026-109618/109619), HTTP2Shell/Brotli (CVE-2026-111497), CVE-2024-4577, CVE-2019-11043. Cuts exploitation channels at the edge in minutes, applies verified upstream source patches, recycles workers, then re-checks every fix. Unattended: setup.sh --auto
Full exploits and PoCs for php2shell (CVE-2026-109618, CVE-2026-109619) and CVE-2024-4577 - PHP critical RCE (CVSS 9.2-9.8)
Automated detection & exploitation of critical PHP vulnerabilities (CVE-2024-4577 bypass, CVE-2025-14177, CVE-2025-14180, CVE-2025-14178)
PHP CGI CVE-2024-4577 PoC
Scanning CVE-2024-4577 vulnerability with a url list.
a-roshbaik/cve-2024-4577-php-rce source repository
ahmetramazank/cve-2024-4577 source repository
bibo318/cyberbugs-tracker source repository
This is a PoC for PHP CVE-2024-4577.
PHP CGI Argument Injection (CVE-2024-4577) Remote Code Execution PoC
CVE-2024-4577 Exploits
CVE-2024-4577 EXP