Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. phpmyadmin/phpmyadmin
  4. ›
  5. CVE-2023-25727

CVE-2023-25727: Cross-site Scripting vulnerability in drag-and-drop upload of phpMyAdmin

February 13, 2023 (updated March 21, 2025)

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.

References

  • github.com/advisories/GHSA-6hr3-44gx-g6wh
  • github.com/phpmyadmin/composer
  • github.com/phpmyadmin/phpmyadmin/commit/53f70fd7f3b388639922e6cc1ca51fbe890c91cc
  • github.com/phpmyadmin/phpmyadmin/commit/efa2406695551667f726497750d3db91fb6f662e
  • nvd.nist.gov/vuln/detail/CVE-2023-25727
  • www.phpmyadmin.net/security/PMASA-2023-1

Code Behaviors & Features

Detect and mitigate CVE-2023-25727 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.3.0 before 4.9.11, all versions starting from 5.0 before 5.2.1

Fixed versions

  • 4.9.11
  • 5.2.1

Solution

Upgrade to versions 4.9.11, 5.2.1 or above.

Impact 5.4 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/phpmyadmin/phpmyadmin/CVE-2023-25727.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:04 +0000.