XSS Vulnerability in phpMyAdmin 5.x - Check Tables Feature Exploit

phpmyadmin Updated 02 Oct 2025

Summary

23/01/2025
N/A
Yes i
Unrated
Not published

CVE-2025-24530: An issue was discovered in phpMyAdmin 5.x before 5.2.2. Affects phpmyadmin versions < 4:5.0.4+dfsg2-2+deb11u2. Fixed in 4:5.0.4+dfsg2-2+deb11u2. 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 for managing MySQL databases through a web interface. It allows users to perform various database operations, including creating, modifying, and deleting databases and tables. The tool is popular among developers and database administrators due to its user-friendly interface and extensive features. However, vulnerabilities can arise, such as the recently discovered XSS vulnerability in versions 5.x before 5.2.2, which could potentially compromise user data and security.

Vulnerability Detail

An XSS (Cross-Site Scripting) vulnerability has been identified in phpMyAdmin 5.x versions prior to 5.2.2. This vulnerability allows an attacker to craft a malicious table or database name that, when processed by the check tables feature, could execute arbitrary JavaScript in the context of the user's browser. This could lead to unauthorized actions, data theft, or session hijacking, posing significant risks to users and their data.

How To Fix

Minimum fixed version

4:5.0.4+dfsg2-2+deb11u2

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 workaround, users can avoid using the check tables feature until they have updated to the patched version. Additionally, sanitizing user inputs and validating table/database names can help mitigate the risk of XSS attacks.

Conclusion

The XSS vulnerability in phpMyAdmin versions prior to 5.2.2 poses significant risks to users and their data. It is crucial to update to the latest version to mitigate these risks. By following the provided steps and utilizing tools like Vulert, users can ensure their applications remain secure against such vulnerabilities.

See every vulnerability recorded for phpmyadmin →

Share this vulnerability

FAQ

XSS (Cross-Site Scripting) is a security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users, potentially leading to data theft or unauthorized actions.

You can check if your installation is affected by using tools like Vulert, which monitors open-source vulnerabilities in your software. Visit Vulert Scanner to analyze your application without needing to sign up.

The risks include unauthorized access to user sessions, data theft, and the potential for attackers to perform actions on behalf of the user, compromising the integrity of the database.

Yes, you can temporarily avoid using the check tables feature and ensure that user inputs are sanitized to reduce the risk of XSS attacks.

After updating, verify that the installation was successful and monitor your application for any unusual activity to ensure that the vulnerability has been effectively addressed.

Related vulnerabilities

Recent vulnerabilities recorded for phpmyadmin.

How To Fix

Minimum fixed version

4:5.0.4+dfsg2-2+deb11u2

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