Cross-Site Scripting (XSS) Vulnerability in phpMyAdmin: Risk of Arbitrary Script Injection

phpmyadmin Updated 02 Oct 2025

Summary

16/10/2009
N/A
Yes i
Unrated
Not published

CVE-2009-3696: Cross-site scripting (XSS) vulnerability in phpMyAdmin 2.11.x before 2.11.9.6 and 3.x before 3.2.2.1 allows remote attackers to inject arbitrary web script or HTML via a crafted name for a MySQL table. Affects phpmyadmin versions < 4:3.2.2.1-1. Fixed in 4:3.2.2.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 Penetration testing for web, API and mobile 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 interact with databases, allowing users to perform various operations such as creating, modifying, and deleting databases and tables. However, versions 2.11.x before 2.11.9.6 and 3.x before 3.2.2.1 are vulnerable to a cross-site scripting (XSS) issue, which can lead to security breaches if exploited.

Vulnerability Detail

The vulnerability arises from improper handling of user input in phpMyAdmin, specifically when naming MySQL tables. Attackers can craft malicious table names that inject arbitrary web scripts or HTML into the application. This can lead to unauthorized actions being performed on behalf of users, data theft, or redirection to malicious sites. The vulnerability affects multiple Debian ecosystems, including versions 11, 12, and 13.

How To Fix

Minimum fixed version

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

As a temporary measure, users can sanitize input when naming MySQL tables to prevent the injection of malicious scripts. This can be done by implementing input validation checks to ensure that only safe characters are allowed in table names.

Conclusion

The CVE-2009-3696 vulnerability in phpMyAdmin poses significant risks due to its potential for cross-site scripting attacks. Users are strongly advised to upgrade to the latest version to mitigate these risks. Implementing input validation can serve as a temporary workaround, but upgrading remains the best practice for securing your application.

See every vulnerability recorded for phpmyadmin →

Share this vulnerability

FAQ

The impact includes the potential for attackers to execute arbitrary scripts in the context of the user's browser, leading to data theft and unauthorized actions.

You can check your phpMyAdmin version and compare it against the vulnerable versions listed. Additionally, you can use tools like Vulert to monitor for vulnerabilities.

Yes, you can implement input validation to sanitize table names, but upgrading is the most effective solution.

Regularly update phpMyAdmin, use strong passwords, restrict access to trusted IPs, and implement HTTPS to secure data transmission.

Detailed information can be found in the CVE database and on security advisory sites. You can also refer to the official phpMyAdmin documentation.

Related vulnerabilities

Recent vulnerabilities recorded for phpmyadmin.

How To Fix

Minimum fixed version

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