
criticalZero-Day Exploits
Critical PHP Zero-Day CVE-2024-4577 Exploited for Remote Code Execution
A critical RCE vulnerability in PHP (CVE-2024-4577) is seeing active exploitation by ransomware groups within 48 hours of disclosure, targeting Windows-based web servers using XAMPP.
22 July 2026Last updated 20 August 20265 min readUnit 42
E
Encrygma AI Cyber Weapons Advisory Services :We provide AI Cyber Warfare Technologies Reports, including full technical blueprints, tech source codes, entire know how. Consult with us. Click Here
Executive Takeaway — TL;DR
- Category:
- Zero-Day Exploits
- Severity:
- Critical
- Actor Type:
- Cybercriminal
- Geography:
- Global
- Confidence:
- Confirmed
- CVE:
- CVE-2024-4577, CVE-2012-1823
- Source:
- Unit 42
- Read Time:
- 5 min
Executive Summary\nA critical remote code execution (RCE) vulnerability in PHP, tracked as CVE-2024-4577, has entered a phase of rapid widespread exploitation. Disclosed recently by researchers at DEVCORE, the flaw allows unauthenticated attackers to bypass previous protections and execute arbitrary code on Windows systems. Security sensors have already detected multiple campaigns, including ransomware deployments, targeting vulnerable installations. The high CVSS score of 9.8 reflects the ease of exploitation and the potential for complete system compromise. Encrygma analysts are monitoring the situation as threat actors move from scanning to active delivery of payloads, making this one of the most significant web-tier vulnerabilities of the year.\n\n## Threat Analysis\nThe threat landscape for CVE-2024-4577 shifted almost immediately from a theoretical risk to active exploitation. Within 24 hours of the vulnerability's disclosure and the release of proof-of-concept (PoC) code, several threat actor clusters began scanning the internet for vulnerable targets. Notably, the 'TellYouThePass' ransomware group has been identified as one of the first major actors to weaponize the exploit, using it to deliver file-encrypting payloads to poorly secured web servers. The attack surface is significant, as PHP is a foundational component of many web environments, particularly those running on Windows architectures like XAMPP or those using localized character sets. The speed of adoption by ransomware affiliates indicates a high level of preparedness and automated toolsets designed to capitalize on zero-day disclosures.\n\n## Technical Details\nCVE-2024-4577 is an argument injection vulnerability that arises due to a 'best-fit' character encoding conversion feature in Windows. When PHP is running in CGI mode (or where the CGI binary is exposed), Windows may convert certain Unicode characters in a way that allows an attacker to inject arguments into the PHP executable command line. For instance, a soft hyphen character (0xAD) might be interpreted as a literal hyphen (0x2D), allowing an attacker to pass the '-d' flag and inject 'auto_prepend_file' directives via the query string. This technique effectively bypasses the fixes for the decade-old CVE-2012-1823. The vulnerability is especially potent on systems configured with certain locales such as Traditional Chinese, Simplified Chinese, or Japanese, but it can affect other configurations depending on how the server handles command-line argument parsing.\n\n## Attribution Assessment\nAs of this report, the primary activity is attributed to various cybercriminal organizations, with the 'TellYouThePass' ransomware group being the most prominent. This group has a long history of quickly adopting high-impact vulnerabilities—such as Log4Shell and various Apache vulnerabilities—to maximize their reach before organizations can patch. While no state-sponsored (APT) activity has been publicly confirmed yet, the ability to gain unauthenticated RCE on internet-facing web servers is a high-priority capability for espionage actors. Encrygma analysts anticipate that APT groups from diverse geographical regions, particularly those with a focus on initial access and credential harvesting, will incorporate this exploit into their playbooks within the current 48-hour window.\n\n## Implications\nThe implications of CVE-2024-4577 are profound for the global web infrastructure. Because many administrators are unaware that their PHP configuration might be running in a vulnerable CGI mode, millions of systems remain at risk. The rapid turnaround from disclosure to ransomware deployment highlights the shrinking 'patch window' available to defenders. Furthermore, the reliance on legacy Windows-based PHP installations in many enterprise environments means that organizations may face challenges in applying updates without disrupting critical business operations. For many, this vulnerability serves as a stark reminder of the risks associated with legacy character encoding features in modern operating systems and their impact on application security.\n\n## Recommendations\nEncrygma strongly recommends that all administrators upgrade to the latest PHP versions (8.1.29, 8.2.20, or 8.3.8) immediately. For systems where an immediate upgrade is not feasible, organizations should apply a rewrite rule at the web server level (Apache or Nginx) to block suspicious query strings containing hyphens followed by common PHP flags. Additionally, administrators of Windows-based web servers should consider migrating away from PHP-CGI if possible, moving toward more secure execution environments like FastCGI (php-fpm). Continuous monitoring of web server logs for unusual HTTP requests and the presence of unauthorized '.php' files in temporary directories is essential to detect early signs of compromise. Finally, ensuring that all web-facing assets are protected by a Web Application Firewall (WAF) with updated signatures can provide an additional layer of defense against known PoC payloads.
ENCRYGMA
Need Zero Click Spyware for Android and iOS?
Encrygma delivers serverless, offline, quantum-safe encrypted communications built for executives, agencies, and operators facing zero-click spyware and advanced mobile surveillance threats.
Share
Back to News Room