patchminder
Proof of concept · Exploit-DB CVE-2020-5504

SQL injectionin the phpmyadmin/phpmyadmin package.

Published 9 Jan 2020 · Updated 16 Apr 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (Exploit-DB).

Attack code is public
Severity
High 8.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 28.0% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 4.9.4, 5.0.1
In plain words

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.

What to do now
  • Upgrade phpmyadmin/phpmyadmin (Packagist) to 4.9.4, 5.0.1 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
n/a
Not confirmed
Not confirmed
CVE record
phpmyadmin/phpmyadmin (Packagist)
4.0.0 to before 4.9.4
4.9.4
GitHub advisory
phpmyadmin/phpmyadmin (Packagist)
5.0.0 to before 5.0.1
5.0.1
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 5 Jan 2020
    CVE ID reserved by mitre.
  2. 9 Jan 2020
    Published in the CVE List.
  3. 14 Nov 2021
    First public proof of concept on GitHub.
  4. 16 Apr 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (Exploit-DB).

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
1 entry
GitHub proof of concepts
2 repositories
Exploit-DBEDB-ID 52451web application exploit for php, published 3 Dec 2025
GitHubno warning signs foundxMohamed0/CVE-2020-5504-phpMyAdmin1 stars · created 14 Nov 2021
GitHubno warning signs foundCerberusMrXi/phpMyAdmin-CVE-2020-5504-Exploit0 stars · created 23 Aug 2026Professional PHPMyAdmin 5.0.0 SQL Injection (CVE-2020-5504) exploitation framework with automated database enumeration, table extraction, and data dumping capabilities. Features blind injection, proxy

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other vulnerabilities in this package

References
Cite this page

Patchminder. CVE-2020-5504: SQL injection in the phpmyadmin/phpmyadmin package. https://patchminder.com/cve/cve-2020-5504/ (accessed 5 December 2026).