CVE DatabaseCVE-2009-1151
한국어 권고문 →
CVE-2009-11519.8/CRITICALCISA KEVCWE-94CWE-94

phpMyAdmin setup.php Remote Static Code Injection and Remote Code Execution (RCE) Vulnerability (CVE-2009-1151)

⚡ Jump to Patch
Affected Vendors
phpmyadmin
Affected Components
phpmyadmin
Published Date
2009-03-26
CVSS v3.1
9.8
CRITICAL
EPSS (30d)
96.6%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

phpMyAdmin versions 2.11.x before 2.11.9.5 and 3.x before 3.1.3.1

Impact

Unauthenticated remote attackers can inject arbitrary PHP code into the configuration file via the setup.php save action, leading to full system compromise

Mitigation

Upgrade to patched versions immediately, or delete/restrict access to the setup.php script in production environments

Affected Products & Version Scope

phpMyAdmin 2.11.x before 2.11.9.5 and 3.x before 3.1.3.1

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

The most effective remediation is upgrading to a secure, supported version of phpMyAdmin (2.11.9.5+, 3.1.3.1+, or the latest stable release).

bash
# For Debian/Ubuntu-based systems
sudo apt-get update
sudo apt-get --only-upgrade install phpmyadmin

# Manual installation upgrade example
wget https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.tar.gz
tar -zxvf phpMyAdmin-5.2.1-all-languages.tar.gz

2. Temporary Workaround & Hardening Configuration

If an immediate upgrade is not feasible, remove the setup.php script and the scripts directory entirely, or restrict access using web server configuration rules.

nginx
# Block access to setup.php and scripts directory in Nginx
location ~* ^/phpmyadmin/(setup|scripts)/ {
    deny all;
    return 403;
}

3. Log Audit & IoC Verification Commands

Inspect web server access logs for suspicious POST requests targeting setup.php and scan configuration files for unauthorized PHP code injection.

bash
# Search Apache/Nginx access logs for POST requests to setup.php
grep -i 'setup.php' /var/log/nginx/access.log | grep 'POST'

# Scan phpMyAdmin configuration directories for suspicious PHP functions
egrep -r '(eval|system|passthru|shell_exec|popen|proc_open)\s*\(' /usr/share/phpmyadmin/config/
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
Cloudflare Enterprise & Pro WAF
Immediately delete the setup.php script and scripts directory from production environments to prevent unauthorized remote code execution.

Block Exploits Instantly with Managed Virtual Patching Rules

Can't patch production immediately? Deploy managed WAF rules at the edge to intercept RCE, SQLi, and deserialization payloads before they hit your origin server.

3-min setup · Automated Zero-Day Managed Rules
Practice Exploiting & Patching This Web Vulnerability in an Interactive Lab
Launch Hands-On Security Lab

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability is a static code injection flaw in setup.php, the web-based configuration utility of phpMyAdmin. phpMyAdmin allows users to configure settings via a web interface and save them to the config.inc.php file. The root cause lies in the lack of input validation and sanitization within the save action handler of setup.php. User-supplied parameters are directly serialized and written into the configuration file template without proper escaping, allowing arbitrary PHP code to be injected.

2. Exploitation Mechanics & Attack Scenario

An unauthenticated attacker can directly access the scripts/setup.php endpoint. By sending a crafted HTTP POST request with the parameter action=save and embedding malicious PHP payloads (such as eval($_POST['cmd'])) within the configuration parameters, the attacker forces setup.php to write the payload into config/config.inc.php. Once the configuration file is updated, the attacker can trigger the execution of the injected code by directly requesting the configuration file or accessing phpMyAdmin, executing arbitrary commands under the privileges of the web server process.

3. Infrastructure & Business Impact

With a CVSS score of 9.8 (Critical) and its inclusion in the CISA KEV catalog, this vulnerability represents a high-risk vector that has been actively exploited in the wild. Successful exploitation grants the attacker complete control over the web server hosting phpMyAdmin. This can lead to unauthorized access to sensitive databases, data exfiltration, database tampering, and lateral movement within the internal network, posing severe risks to organizational infrastructure and data confidentiality.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2009-1151)

FAQ

Q1. How critical is CVE-2009-1151 and is it actively exploited in the wild?

CVE-2009-1151 is rated CVSS 9.8 (CRITICAL) with a 30-day EPSS exploitation probability of 96.6%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2009-1151?

Primary impacted vendors include phpmyadmin across phpmyadmin. Scope summary: phpMyAdmin 2.11.x before 2.11.9.5 and 3.x before 3.1.3.1

Q3. What temporary mitigations or workarounds exist for CVE-2009-1151 before patching?

[Mitigation] Upgrade to patched versions immediately, or delete/restrict access to the setup.php script in production environments Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2009-1151

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (phpmyadmin)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2009-1151 phpMyAdmin setup.php Remote Static Code Injection and Remote Code Execution (RCE) Vulnerability (CVE-2009-1151) (CVSS 9.8) - Patch & Workaround | CVE Pulse