Static Code Injection in phpMyAdmin

phpmyadmin Updated 02 Oct 2025

Summary

14/07/2011
N/A
Yes i
Unrated
Not published

CVE-2011-2506: setup/lib/ConfigGenerator.class.php in phpMyAdmin 3.x before 3.3.10.2 and 3.4.x before 3.4.3.1 does not properly restrict the presence of comment closing delimiters, which allows remote attackers to conduct static code i... Affects phpmyadmin versions < 4:3.4.3.1-1. Fixed in 4:3.4.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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

phpMyAdmin is a popular open-source tool written in PHP that provides a web-based interface for managing MySQL databases. It allows users to perform various database administration tasks such as creating, modifying, and deleting databases, tables, and records. The vulnerability identified as CVE-2011-2506 affects phpMyAdmin versions 3.x before 3.3.10.2 and 3.4.x before 3.4.3.1.

Vulnerability Detail

The vulnerability in phpMyAdmin arises from the improper restriction of comment closing delimiters in the 'setup/lib/ConfigGenerator.class.php' file. This flaw enables remote attackers to conduct static code injection attacks by exploiting their ability to modify the SESSION superglobal array. By injecting malicious code, an attacker can execute arbitrary commands on the server, potentially leading to unauthorized access, data manipulation, or even complete system compromise.

How To Fix

Minimum fixed version

4:3.4.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 upgrading to the latest version is not immediately feasible, a temporary workaround can be implemented by manually modifying the 'setup/lib/ConfigGenerator.class.php' file. Specifically, the code responsible for handling the SESSION superglobal array should be reviewed and modified to ensure proper input validation and sanitization. However, applying this workaround is not recommended as it may introduce errors or unintended consequences. It is strongly advised to prioritize upgrading to the latest version instead.

Conclusion

The static code injection vulnerability in phpMyAdmin can have severe consequences if left unaddressed. It is crucial for users to upgrade their installations to the latest version (3.4.3.1 or later) to mitigate this vulnerability. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for phpmyadmin →

Share this vulnerability

FAQ

phpMyAdmin is a web-based tool used for managing MySQL databases. It provides an intuitive interface for performing various database administration tasks.

Versions 3.x before 3.3.10.2 and 3.4.x before 3.4.3.1 of phpMyAdmin are vulnerable to this static code injection issue.

The vulnerability allows remote attackers to inject malicious code into the phpMyAdmin application, potentially leading to unauthorized access, data manipulation, or complete system compromise.

To fix this vulnerability, it is recommended to upgrade phpMyAdmin to version 3.4.3.1 or later. This version includes the necessary patches to mitigate the static code injection vulnerability.

While a temporary workaround involving manual code modifications is possible, it is strongly advised to prioritize upgrading to the latest version of phpMyAdmin instead.

Related vulnerabilities

Recent vulnerabilities recorded for phpmyadmin.

How To Fix

Minimum fixed version

4:3.4.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