LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2009-1151: phpMyAdmin Remote Code Execution Vulnerability

RBRecent Breaches Vulnerability Intelligence·Mar 25, 2022
High⚠ Actively exploited (CISA KEV)
High
Severity
Active
CISA KEV
No
Ransomware use
Apr 15, 2022
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2009-1151 to its Known Exploited Vulnerabilities catalog on Mar 25, 2022, with a federal patch deadline of Apr 15, 2022 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

Setup script used to generate configuration can be fooled using a crafted POST request to include arbitrary PHP code in generated configuration file.

CVE-2009-1151 is a remote code execution vulnerability in phpMyAdmin. A setup script that generates configuration can be tricked via a crafted POST request into writing arbitrary PHP code into the resulting configuration file. If that file is later loaded by the application, the injected code can run with the privileges of the web server process.

This matters because phpMyAdmin is commonly exposed on internal or internet-facing web servers to manage MySQL and MariaDB databases. Successful abuse can give an attacker a foothold to read or alter data, pivot further into the environment, or establish persistence. Confirm exact affected releases and fixed versions against the vendor advisory.

How it works

The weakness is CWE-94: improper control of code generation (code injection). During setup, phpMyAdmin uses a script to produce a configuration file. An attacker who can reach that setup endpoint can supply a specially crafted POST body that causes the generator to embed attacker-controlled PHP into the written configuration.

Once the malicious configuration is in place and included by the application, the injected PHP executes in the context of the web server user. No further authentication may be required if the setup script remains reachable. Specific request formats, payloads, and preconditions are not detailed here; treat any publicly reachable or residual setup functionality as high risk and verify behavior against the vendor advisory and your own configuration.

Am I affected? How to find it in your systems

phpMyAdmin typically runs as a PHP application under Apache, Nginx, or similar web servers, often in paths such as /phpmyadmin, /pma, or custom aliases, on hosts that administer MySQL or MariaDB. It may appear in development, staging, and production environments, including containers and shared hosting.

How to remediate

Patch first. Apply the updates provided by the phpMyAdmin project or your OS/distribution packages exactly as described in the vendor advisory. CISA’s required action is to apply updates per vendor instructions.

If you can't patch immediately

Reduce exposure until the vendor update can be applied:

If your data may have been exposed

Actively exploited remote code execution flaws in database administration tools can lead to full compromise of the host and the databases it manages. If you suspect exploitation, isolate the system, preserve logs and disk images for investigation, rotate credentials and secrets that the instance could access, and review database and host activity for unauthorized changes. You can run a free exposure scan of your email addresses against known breach data to see whether associated accounts appear in public breach corpora while you complete containment and recovery.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedphpMyAdmin · phpMyAdmin
WeaknessCWE-94
Added to CISA KEVMar 25, 2022
Federal patch deadlineApr 15, 2022
Known ransomware useNot documented
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities