CVE-2023-25727 — Cross-site Scripting vulnerability in...
Cross-site Scripting vulnerability in drag-and-drop upload of phpMyAdmin
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.41%). Schedule for your next planned update.
Does your project use an affected phpmyadmin/phpmyadmin version?
Paste your composer.lock to check it for CVE-2023-25727 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
In phpMyAdmin before 4.9.11 and 5.x before 5.2.1, an authenticated user can trigger Cross-site Scripting (XSS) by uploading a crafted .sql file through the drag-and-drop interface. By disabling the configuration directive $cfg['enable_drag_drop_import'], users will be unable to use the drag and drop upload which would protect against the vulnerability.
Advisory Timeline
- First published February 13, 2023 (1382 days ago).
- Last revised March 21, 2025 — 767 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "phpmyadmin/phpmyadmin:^4.9.11"
composer require "phpmyadmin/phpmyadmin:^5.2.1"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: Packagist (1).
| Package | Fixed In |
|---|---|
| phpmyadmin/phpmyadmin Packagist · Affected: 4.7.0, 4.7.1, 4.7.2, 4.7.3 (+25 more) | 4.9.11 |
| phpmyadmin/phpmyadmin Packagist · Affected: 5.0.0, 5.0.0.1, 5.0.1, 5.0.2 (+8 more) | 5.2.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.4 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-25727ADVISORY
- https://github.com/phpmyadmin/phpmyadmin/commit/53f70fd7f3b388639922e6cc1ca51fbe890c91ccWEB
- https://github.com/phpmyadmin/phpmyadmin/commit/efa2406695551667f726497750d3db91fb6f662eWEB
- https://github.com/phpmyadmin/composerPACKAGE
- https://www.phpmyadmin.net/security/PMASA-2023-1WEB
Frequently Asked Questions
- What is CVE-2023-25727?
- Cross-site Scripting vulnerability in drag-and-drop upload of phpMyAdmin. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.4/10).
- How do I check if my project is affected by CVE-2023-25727?
- CVE-2023-25727 affects phpmyadmin/phpmyadmin. It has a 1.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-25727 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is an above-median EPSS score — 72.9% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2016-6629CRITICAL
phpMyAdmin Authentication Bypass
- CVE-2017-18264CRITICAL
phpMyAdmin Improper Privilege Management
- CVE-2020-26935CRITICAL
phpMyAdmin SQL injection vulnerability
- CVE-2019-6798CRITICAL
phpMyAdmin SQL injection in Designer feature
- CVE-2016-9866CRITICAL
phpMyAdmin CSRF Vulnerability
- CVE-2020-22452CRITICAL
phpmyadmin contains SQL Injection vulnerability
- CVE-2016-5734CRITICAL
phpMyAdmin Code Injection vulnerability
- CVE-2025-24530MEDIUM
phpMyAdmin XSS when checking tables