Skip to main content

CVE-2023-25727 — Cross-site Scripting vulnerability in...

MEDIUM

Cross-site Scripting vulnerability in drag-and-drop upload of phpMyAdmin

Published February 13, 2023Updated March 21, 2025Source: OSV

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.

Check my composer.lock

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
Update phpmyadmin/phpmyadmin to 4.9.11 or later
composer require "phpmyadmin/phpmyadmin:^4.9.11"
Composer
Update phpmyadmin/phpmyadmin to 5.2.1 or later
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).

PackageFixed 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-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.4 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

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

CVSS Score
5.4

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
1.41%
EPSS percentile: 72.9

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

GHSA-6hr3-44gx-g6wh
BIT-phpmyadmin-2023-25727

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock