SQL injectionin the phpmyadmin/phpmyadmin package.
Proof of concept public (Exploit-DB).
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.
- Upgrade phpmyadmin/phpmyadmin (Packagist) to 4.9.4, 5.0.1 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 5 Jan 2020CVE ID reserved by mitre.
- 9 Jan 2020Published in the CVE List.
- 14 Nov 2021First public proof of concept on GitHub.
- 16 Apr 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (Exploit-DB).
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.
Report a link
Other vulnerabilities in this package
- www.phpmyadmin.net
- lists.opensuse.org vendor-advisory
- lists.debian.org mailing-list
- cybersecurityworks.com
- github.com
Patchminder. CVE-2020-5504: SQL injection in the phpmyadmin/phpmyadmin package. https://patchminder.com/cve/cve-2020-5504/ (accessed 5 December 2026).