Staging Environment: Content and features may be unstable or change without notice.
Search for vulnerabilities
Vulnerability details: VCID-pv92-669g-eub2
Vulnerability ID VCID-pv92-669g-eub2
Aliases CVE-2009-1285
Summary Static code injection vulnerability in the getConfigFile function in setup/lib/ConfigFile.class.php in phpMyAdmin 3.x before 3.1.3.2 allows remote attackers to inject arbitrary PHP code into configuration files.
Status Published
Exploitability 2.0
Weighted Severity 0.3
Risk 0.6
Affected and Fixed Packages Package Details
Weaknesses (0)
There are no known CWE.
Data source Metasploit
Description This module exploits a vulnerability in phpMyAdmin's setup feature which allows an attacker to inject arbitrary PHP code into a configuration file. The original advisory says the vulnerability is present in phpMyAdmin versions 2.11.x <= 2.11.9.4 and 3.x <= 3.1.3. There was a follow up vulnerability as the patch was incomplete, affecting versions 3.x <= 3.1.3.1. The file where our payload is written (phpMyAdmin/config/config.inc.php) is not directly used by the system, so it may be a good idea to either delete it or copy the running config (phpMyAdmin/config.inc.php) over it after successful exploitation.
Note
Reliability:
  - repeatable-session
Stability:
  - crash-safe
SideEffects:
  - config-changes
Ransomware campaign use Unknown
Source publication date March 24, 2009
Platform PHP
Source URL https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/unix/webapp/phpmyadmin_config.rb
There are no known vectors.
Exploit Prediction Scoring System (EPSS)
Percentile 0.97182
EPSS Score 0.36057
Published At June 4, 2026, 12:55 p.m.
Date Actor Action Source VulnerableCode Version
2026-06-04T17:07:09.935660+00:00 Debian Importer Import https://security-tracker.debian.org/tracker/data/json 38.6.0