PHP-CGI Query String Flaw Exploited to Expose Source Code and Install Backdoors
Active Exploitation · 2 sources · Updated 2mo ago · First seen May 7, 2012

Attackers exploited a PHP-CGI query string vulnerability, tracked as VU#520827, to disclose PHP source code and execute attacker-controlled code on vulnerable websites. The PHP bug tracker recorded the issue on May 2, 2012, and Sucuri reported active exploitation on May 8. Malicious requests supplied PHP-CGI options through query strings, enabling source disclosure or configuration changes that allowed attacker-supplied input or an external shell to be included.
Sucuri’s honeypots recorded exploitation attempts from 16 IP addresses, and successful attacks resulted in backdoors being uploaded to compromised websites for further attacks against the servers. The report urged administrators to promptly update PHP, use temporary .htaccess request filtering, or move away from the vulnerable CGI configuration. Websites running PHP through CGI were the priority for exposure checks and remediation; compromised sites also required investigation for uploaded backdoors.
Why it matters
Impact assessment
Attackers exploited vulnerable PHP-CGI websites to disclose application source code, execute attacker-controlled PHP, and install backdoors. Source disclosure exposes embedded credentials and application logic; code execution enables persistent compromise and further attacks against the hosting server. Sucuri documented exploitation in May 2012, making this historical intelligence rather than evidence of a new October 2026 campaign.
- Affected population: Organizations hosting websites that pass susceptible query strings to PHP running through CGI.
- Observed impact: Website compromise and backdoor uploads; the report does not quantify affected organizations or confirmed data theft.
- Scope: Scanning and exploitation attempts originated from 16 IP addresses in Sucuri honeypot telemetry. This does not establish the total number of compromised websites.
- Business exposure: Loss of application confidentiality and integrity, potential service disruption, incident-response costs, and credential exposure.


