CVE-2020-5504
HIGH 8.8CVSS 3.1phpMyAdmin SQL injection in user accounts page
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.
- Published
- 9 Jan 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- BIT-phpmyadmin-2020-5504GHSA-fgj8-93xx-f6g6
- Sources
- NVDJSONOSV GHSA-fgj8-93xx-f6g6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | phpmyadmin | phpmyadmincpe:2.3:a:phpmyadmin:phpmyadmin:*:*:*:*:*:*:*:* |
>= 4.0.0, < 4.9.4 | 4.9.4 |
| NVD | phpmyadmin | phpmyadmincpe:2.3:a:phpmyadmin:phpmyadmin:*:*:*:*:*:*:*:* |
>= 5.0.0, < 5.0.1 | 5.0.1 |
| NVD | suse | suse_linux_enterprise_servercpe:2.3:o:suse:suse_linux_enterprise_server:12:*:*:*:*:*:*:* |
= 12 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| OSV | Packagist | phpmyadmin/phpmyadmin | >= 4.0.0, < 4.9.4 | 4.9.4 |
| OSV | Packagist | phpmyadmin/phpmyadmin | >= 5.0.0, < 5.0.1 | 5.0.1 |
References
- http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00024.html · Mailing List, Third Party Advisory, WEB
- https://cybersecurityworks.com/zerodays/cve-2020-5504-phpmyadmin.html · Exploit, Third Party Advisory, WEB
- https://github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2020-5504.md · WEB
- https://lists.debian.org/debian-lts-announce/2020/01/msg00011.html · Mailing List, Third Party Advisory, WEB
- https://www.phpmyadmin.net/security/PMASA-2020-1/ · Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-5504 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmyadmin/phpmyadmin/CVE-2020-5504.yaml · WEB
- https://github.com/phpmyadmin/composer · PACKAGE
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 9 Jan 2020)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 24 May 2022)