phpMyAdmin
phpMyAdmin Remote Code Execution Vulnerability
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.
Timeline
Days relative to CVE publicationFirst public PoC 74 days after publication; added to CISA KEV 13.0 years after publication. First PoC: phpMyAdmin - '/scripts/setup.php' PHP Code Injection (Exploit-DB, 9 Jun 2009).
PoC repositories
Found on GitHub.3 PoCs · 1 informational · 1 not a PoC
PoCs 3
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| adpast/pocs | 3 Feb 2018 +8.9 y | 6 | PoC |
| pagvac/pocs | 3 Feb 2018 +8.9 y | 6 | PoC |
| e-Thug/PhpMyAdmin | 24 Jun 2023 +14.2 y | 1 | PoC |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| tpdlshdmlrkfmcla/ZmEu | 30 Mar 2025 +16.0 y | 0 | Informational · write-up |
Not a PoC 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| ItaIia/PhpMyAdmin | 24 Jun 2023 +14.2 y | 1 | Not a PoC · unrelated |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | phpMyAdmin - Config File Code Injection (Metasploit) | 3 Jul 2010 | 14 Nov 2026 |
| Exploit-DB | phpMyAdmin - '/scripts/setup.php' PHP Code Injection | 9 Jun 2009 | 14 Nov 2026 |
| Exploit-DB | phpMyAdmin - 'pmaPWN!' Code Injection / Remote Code Execution | 22 Jun 2009 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: phpMyAdmin Config File Code Injection (exploit/unix/webapp/phpmyadmin_config) | 16 Nov 2009 | 14 Nov 2026 |
| nuclei template | nuclei template: PhpMyAdmin Scripts - Remote Code Execution | 27 Apr 2023 | 14 Nov 2026 |
| PoC Index | http://www.gnucitizen.org/blog/cve-2009-1151-phpmyadmin-remote-code-execution-proof-of-concept/ | unknown | 14 Nov 2026 |
| PoC Index | http://www.securityfocus.com/archive/1/504191/100/0/threaded | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 3 PoC reposGET /phpMyAdmin-3.0.1.1//config/config.inc.php
- Query
c=ls -l /- Seen in
- 2 repos: adpast/pocs, pagvac/pocs
- Evidence
- adpast/pocs/README.md:26 pagvac/pocs/README.md:26
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/phpMyAdmin-3\.0\.1\.1//config/config\.inc\.php\?(?:.*&)?c=ls -l /
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2009-1151 phpMyAdmin phpMyAdmin exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/phpMyAdmin-3.0.1.1//config/config.inc.php"; http.uri; content:"c=ls -l /"; reference:url,poc.griffinguard.io/cve/CVE-2009-1151; classtype:web-application-attack; sid:9299747; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: phpMyAdmin phpMyAdmin exploit attempt (CVE-2009-1151)
id: gg-pocmon-cve-2009-1151-9299747
status: experimental
description: Request pattern taken from public PoCs for CVE-2009-1151. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2009-1151
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/phpMyAdmin-3.0.1.1//config/config.inc.php'
cs-uri-query|contains|all:
- 'c=ls -l /'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2009.1151