Cross-Site Scripting Vulnerability in phpMyAdmin: CVE-2010-2958

phpmyadmin Updated 02 Oct 2025

Summary

08/09/2010
N/A
Yes i
Unrated
Not published

CVE-2010-2958: Cross-site scripting (XSS) vulnerability in libraries/Error.class.php in phpMyAdmin 3.x before 3.3.6 allows remote attackers to inject arbitrary web script or HTML via vectors related to a PHP backtrace and error message... Affects phpmyadmin versions < 4:3.3.6-1. Fixed in 4:3.3.6-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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

phpMyAdmin is a widely-used open-source tool written in PHP, designed to handle the administration of MySQL databases through a web interface. It provides features such as database management, user management, and the ability to execute SQL queries. However, versions prior to 3.3.6 are vulnerable to a cross-site scripting (XSS) attack, which can compromise the security of applications using this software.

Vulnerability Detail

The vulnerability identified as CVE-2010-2958 is a cross-site scripting (XSS) flaw found in the libraries/Error.class.php file of phpMyAdmin versions 3.x before 3.3.6. This vulnerability allows remote attackers to inject arbitrary web scripts or HTML into the application through manipulated PHP backtrace and error messages. The implications of this vulnerability can lead to unauthorized access, data theft, or manipulation of the web application's behavior, potentially affecting users' sensitive information.

How To Fix

Minimum fixed version

4:3.3.6-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 an immediate upgrade is not feasible, consider disabling error messages in the phpMyAdmin configuration to mitigate the risk of XSS attacks. This can be done by setting the error reporting level in your PHP configuration file (php.ini) to a less verbose level, such as: error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING.

Conclusion

CVE-2010-2958 is a significant cross-site scripting vulnerability in phpMyAdmin that can have serious implications for users. It is crucial to upgrade to the latest version to protect against potential attacks. If an upgrade is not possible, implementing workarounds can help mitigate risks until a proper fix is applied.

See every vulnerability recorded for phpmyadmin →

Share this vulnerability

FAQ

CVE-2010-2958 is a cross-site scripting vulnerability in phpMyAdmin that allows attackers to inject malicious scripts through error messages.

Versions of phpMyAdmin 3.x prior to 3.3.6 are affected by this vulnerability.

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

The risks include unauthorized access to user data, manipulation of web application behavior, and potential data theft.

Yes, you can disable error messages in the phpMyAdmin configuration to reduce the risk of XSS attacks.

Related vulnerabilities

Recent vulnerabilities recorded for phpmyadmin.

How To Fix

Minimum fixed version

4:3.3.6-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