The National Computer Emergency Response Team (NCERT) has issued a critical advisory warning to organizations, including those in Pakistan, about a newly discovered security flaw in PHP that threatens Windows-based systems operating in CGI mode.
The vulnerability, identified as CVE-2024-4577, is an argument injection flaw that enables attackers to execute arbitrary code on affected systems. Cybercriminals are actively exploiting this weakness to deploy malicious software, including cryptocurrency miners like XMRig and remote access trojans (RATs) such as Quasar RAT.
While organizations worldwide are being targeted, Pakistani institutions are particularly vulnerable due to the widespread use of PHP in web applications. The flaw allows hackers to manipulate firewall settings, execute remote commands, and install harmful Windows Installer (MSI) files, significantly increasing the risk of system compromise.
The security flaw stems from improper input validation in PHP’s CGI mode on Windows servers. Cybercriminals exploit this weakness by sending specifically crafted HTTP requests to manipulate PHP configurations with inadequate security settings. If successfully exploited, attackers can gain unauthorized access to the system, steal sensitive data, or even cause complete operational shutdowns.
Reports indicate that while the highest number of attacks has been observed in regions such as Taiwan, Hong Kong, Brazil, Japan, and India, organizations in Pakistan remain at substantial risk due to the prevalence of PHP-powered infrastructure.
In response to the growing threat, NCERT has issued urgent recommendations for mitigating risks associated with the PHP vulnerability:
Given the widespread exploitation of this vulnerability, cybersecurity experts stress the urgency of implementing these protective measures. Organizations are advised to develop robust incident response plans, conduct regular security audits, and ensure frequent backups of critical data to secure locations.
With cyber threats evolving rapidly, proactive security measures are essential to prevent data breaches, financial losses, and operational disruptions. As global cyberattacks continue to rise, timely action can be the key to safeguarding digital infrastructure from severe consequences.