XSS Vulnerability in phpMyAdmin: Risk of Malicious SQL File Uploads

phpmyadmin Updated 02 Oct 2025

Summary

13/02/2023
N/A
No i
Medium
5.4

UBUNTU-CVE-2023-25727: In phpMyAdmin before 4.9.11 and 5.x before 5.2.1, an authenticated user can trigger XSS by uploading a crafted .sql file through the drag-and-drop interface. Affects phpmyadmin versions 4:4.0.10-1 – 4:4.0.9-1. No fix is published. 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 allows users to perform various database operations, including creating, modifying, and deleting databases and tables. Despite its robust functionality, phpMyAdmin has been found to be vulnerable to a cross-site scripting (XSS) attack, particularly in versions prior to 4.9.11 and 5.x before 5.2.1. This vulnerability can be exploited by authenticated users, posing a significant risk to database security.

Vulnerability Detail

The vulnerability identified as CVE-2023-25727 allows an authenticated user to trigger an XSS attack by uploading a specially crafted .sql file through the drag-and-drop interface of phpMyAdmin. This can lead to unauthorized actions being performed on behalf of the user, potentially compromising sensitive data and the integrity of the database. The vulnerability originates from insufficient validation of user-uploaded files, which can be exploited to execute malicious scripts in the context of the user's session.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can restrict file uploads or disable the drag-and-drop feature in phpMyAdmin settings until the package is updated. This can be done by modifying the configuration file to limit file upload capabilities.

Conclusion

The CVE-2023-25727 vulnerability in phpMyAdmin poses a significant risk due to its potential for XSS attacks through file uploads. It is crucial for users to update to the latest versions to protect their databases from exploitation. Regular monitoring and updates are essential for maintaining security in open-source applications.

See every vulnerability recorded for phpmyadmin →

Share this vulnerability

FAQ

CVE-2023-25727 is a vulnerability in phpMyAdmin that allows authenticated users to perform XSS attacks by uploading malicious .sql files.

Versions prior to 4.9.11 and 5.x before 5.2.1 are vulnerable to this XSS attack.

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

Exploitation of this vulnerability can lead to unauthorized actions being performed in the context of the user's session, potentially compromising sensitive data.

You can update phpMyAdmin using the command 'sudo apt-get update && sudo apt-get install phpmyadmin' to ensure you have the latest security patches.

Related vulnerabilities

Recent vulnerabilities recorded for phpmyadmin.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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