Vulnerability record · CVE-2009-1151 · published 26 March 2009
CVE-2009-1151: phpMyAdmin setup.php code injection enables remote PHP execution
Phpmyadmin · Phpmyadmin
phpMyAdmin 2.11.x before 2.11.9.5 and 3.x before 3.1.3.1 contains a static code injection flaw in setup.php. The save action lets a remote attacker write arbitrary PHP code into a configuration file, which is then executed by the server. Because the vulnerable setup script is reachable without authentication, this is a full remote code execution issue.
Description
Static code injection vulnerability in setup.php in phpMyAdmin 2.11.x before 2.11.9.5 and 3.x before 3.1.3.1 allows remote attackers to inject arbitrary PHP code into a configuration file via the save action.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityUnauthenticated remote code execution with a CVSS of 9.8, KEV listing, near-maximum EPSS, and public exploits make this an urgent patch.
What it is
phpMyAdmin 2.11.x before 2.11.9.5 and 3.x before 3.1.3.1 contains a static code injection flaw in setup.php. The save action lets a remote attacker write arbitrary PHP code into a configuration file, which is then executed by the server. Because the vulnerable setup script is reachable without authentication, this is a full remote code execution issue.
Impact
An unauthenticated attacker can execute arbitrary PHP code on the web server, leading to full compromise of the phpMyAdmin host and any database credentials it holds. This can expose or destroy the underlying database contents.
Attack surface
Reached over the network through the setup.php script's save action; the CVSS vector shows no privileges or user interaction required. Any exposed phpMyAdmin setup interface is directly attackable.
Exploitation
CISA added it to KEV in March 2022, EPSS is 0.966 at the 99.88th percentile, and public proof-of-concept and Exploit-DB references exist, so exploitation is widespread and reliable. No ransomware campaign use is documented.
What to do
- Upgrade phpMyAdmin to 2.11.9.5 or 3.1.3.1 (or later) immediately.
- Remove or block access to the setup directory and setup.php on production systems.
- Restrict phpMyAdmin access to trusted management networks or require authentication in front of it.
- Audit the phpMyAdmin config file for injected PHP code and restore it from a known-good copy.
- Rotate database credentials and any secrets stored in the phpMyAdmin configuration.
Detection
- Monitor web logs for POST requests to setup.php with a save action or PHP code in parameters.
- Alert on unexpected modifications to phpMyAdmin config files, especially added PHP tags.
- Scan for web-accessible setup directories and exposed phpMyAdmin instances.
- Review server processes and outbound connections for signs of injected PHP execution.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2009-1151 to the Known Exploited Vulnerabilities catalog on 25 March 2022 as "phpMyAdmin Remote Code Execution Vulnerability". Required action: Apply updates per vendor instructions. Federal deadline 15 April 2022.
Affected products
2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2009-1151 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2009-1151), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.