Critical Static Code Injection Vulnerability in phpMyAdmin

phpmyadmin Updated 02 Oct 2025

Summary

26/03/2009
N/A
Yes i
Critical
9.8

CVE-2009-1151: 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. Affects phpmyadmin versions < 4:3.1.3.1-1. Fixed in 4:3.1.3.1-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

phpMyAdmin is a widely-used open-source tool for managing MySQL databases through a web interface. It provides a user-friendly way to perform database operations such as creating, modifying, and deleting databases and tables. However, certain versions of phpMyAdmin are vulnerable to static code injection, which can lead to severe security risks if exploited.

Vulnerability Detail

The vulnerability identified as CVE-2009-1151 is a static code injection flaw found in setup.php of phpMyAdmin versions 2.11.x before 2.11.9.5 and 3.x before 3.1.3.1. This vulnerability allows remote attackers to inject arbitrary PHP code into a configuration file via the save action. If successfully exploited, this could lead to unauthorized access, data manipulation, and potentially complete control over the affected server.

How To Fix

Minimum fixed version

4:3.1.3.1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade phpmyadmin

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate upgrading is not possible, consider restricting access to the phpMyAdmin setup.php file by modifying your web server configuration to deny access to this file. For example, in an Apache server, you can add the following lines to your .htaccess file:

<Files "setup.php">
Order Allow,Deny
Deny from all
</Files>

Conclusion

CVE-2009-1151 represents a significant security risk for users of vulnerable phpMyAdmin versions. It is crucial to upgrade to the latest version to mitigate this risk. Additionally, implementing workarounds can provide temporary relief until an upgrade is possible.

See every vulnerability recorded for phpmyadmin →

Share this vulnerability

FAQ

CVE-2009-1151 is a static code injection vulnerability in phpMyAdmin that allows remote attackers to inject arbitrary PHP code into a configuration file.

The vulnerability affects phpMyAdmin versions 2.11.x before 2.11.9.5 and 3.x before 3.1.3.1.

Exploitation of this vulnerability can lead to unauthorized access, data manipulation, and full control over the affected server.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The CVSS score for CVE-2009-1151 is 9.8, indicating a critical level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for phpmyadmin.

How To Fix

Minimum fixed version

4:3.1.3.1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade phpmyadmin

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback