CVE-2009-1151: PHP Code Injection in phpMyAdmin Setup
- Vendors
- Debian ProjectPhpmyadmin
CVE-2009-1151 is a static code injection vulnerability in the setup functionality of phpMyAdmin 2.11.x before 2.11.9.5 and 3.x before 3.1.3.1. The setup script's save action permits remote attackers to inject arbitrary PHP code into a configuration file. Execution of the modified configuration enables attacker-controlled PHP code to run on the server. The vulnerability has been exploited to deploy SSH brute-force scanners and has been associated with server-compromise campaigns.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise the confidentiality, integrity, and availability of resources accessible to the PHP process. Attackers can execute server-side code, modify application files, access accessible credentials and data, and deploy malicious tools. Exploitation has been associated with SSH scanning malware and remote command shells. Root privileges are not an inherent outcome; some observed compromises additionally involved a separate local privilege-escalation exploit.
Mitigation
If you can’t patch tonight, do this now.
Restrict access to phpMyAdmin, particularly its setup functionality, using web-server access controls or network restrictions that permit only trusted administrative systems. Avoid exposing the administrative interface directly to the Internet.
Remediation
Patch, then assume compromise.
Upgrade affected phpMyAdmin installations to a currently supported release. The historical fixes were released in versions 2.11.9.5 and 3.1.3.1 for their respective branches. If compromise is suspected, inspect configuration and application files for injected code and remove unauthorized shells and malware; upgrading alone does not remove an existing compromise.
Exploits
3 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2009-1151 exploited in the wild?
- Yes. As of Nov 15, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Mar 25, 2022.
- Is there a public exploit for CVE-2009-1151?
- Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2009-1151, the earliest disclosed Mar 24, 2009.
- Is there a patch for CVE-2009-1151?
- Upgrade affected phpMyAdmin installations to a currently supported release. The historical fixes were released in versions 2.11.9.5 and 3.1.3.1 for their respective branches.
- What products are affected by CVE-2009-1151?
- Phpmyadmin and Debian Project Debian Linux.
- How severe is CVE-2009-1151?
- CVE-2009-1151 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 96.6% (100th percentile) as of Nov 15, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.