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

CVE-2020-5504: phpMyAdmin SQL injection in user accounts page

May 24, 2022 (updated April 16, 2025)

In phpMyAdmin 4 before 4.9.4 and 5 before 5.0.1, SQL injection exists in the user accounts page. A malicious user could inject custom SQL in place of their own username when creating queries to this page. An attacker must have a valid MySQL account to access the server.

References

  • cybersecurityworks.com/zerodays/cve-2020-5504-phpmyadmin.html
  • github.com/FriendsOfPHP/security-advisories/blob/master/phpmyadmin/phpmyadmin/CVE-2020-5504.yaml
  • github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2020-5504.md
  • github.com/advisories/GHSA-fgj8-93xx-f6g6
  • github.com/phpmyadmin/composer
  • lists.debian.org/debian-lts-announce/2020/01/msg00011.html
  • nvd.nist.gov/vuln/detail/CVE-2020-5504
  • www.phpmyadmin.net/security/PMASA-2020-1

Code Behaviors & Features

Detect and mitigate CVE-2020-5504 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.0.0 before 4.9.4, all versions starting from 5.0.0 before 5.0.1

Fixed versions

  • 4.9.4
  • 5.0.1

Solution

Upgrade to versions 4.9.4, 5.0.1 or above.

Impact 8.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

packagist/phpmyadmin/phpmyadmin/CVE-2020-5504.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:25 +0000.