CVE-2020-5504 in the critical feed json
phpMyAdmin SQL injection in user accounts page
published 2020-01-09 6 y ago modified 2026-09-08 2 mo ago also BIT-phpmyadmin-2020-5504 , EUVD-2022-3776 , GHSA-fgj8-93xx-f6g6
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 28.0%
- EPSS 28.0% chance of exploitation in 30 days, percentile 98%
- public exploits
- 1
- Exploit-DB
Summary
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.
Patch / fix
- packagist phpmyadmin/phpmyadmin 4.9.4, 5.0.1
- bitnami phpmyadmin 4.9.4, 5.0.1
- phpmyadmin phpmyadmin 4.9.4, 5.0.1
- phpmyadmin Debian 14, Debian 13, Debian 12 4:4.9.4+dfsg1-1
debian advisories DEBIAN-CVE-2020-5504
- phpmyadmin Ubuntu 18.04 LTS 4:4.6.6-5ubuntu0.5
- phpmyadmin Ubuntu Pro 16.04 LTS 4:4.5.4.1-2ubuntu2.1+esm6
ubuntu advisories UBUNTU-CVE-2020-5504
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- phpMyAdmin openSUSE Tumbleweed 5.1.1-1.2
- phpMyAdmin Package Hub 15 SP1, Package Hub 15, Package Hub 12 +1 more 4.9.4-bp151.3.12.1
opensuse advisories openSUSE-SU-2024:11171-1openSUSE-SU-2020:0056-1
- phpmyadmin Alpine 3.11 4.9.4-r0
- phpmyadmin Alpine 3.24, Alpine 3.23, Alpine 3.22 +10 more 5.0.1-r0
alpine advisories ALPINE-CVE-2020-5504
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-5504 updated cvss 8.1
phpmyadmin: SQL injection in the user accounts page
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- Published
- First public exploit (EDB-52451)
Exploit prediction
28.05% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- EDB-52451 phpMyAdmin 5.0.0 - SQL Injection webapps, 2025-12-03
- cybersecurityworks.com https://cybersecurityworks.com/zerodays/cve-2020-5504-phpmyadmin.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
| OSV | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | phpmyadmin/phpmyadmin | >=4.0.0, <4.9.4 >=5.0.0, <5.0.1 |
4.9.4 5.0.1 |
| bitnami | phpmyadmin | >=4.0.0, <4.9.4 >=5.0.0, <5.0.1 |
4.9.4 5.0.1 |
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
phpmyadmin.net
/security/PMASA-2020-1/
patch, vendor-advisory, advisory
-
cybersecurityworks.com
/zerodays/cve-2020-5504-phpmyadmin.html
web, exploit, third-party-advisory, advisory
-
lists.opensuse.org
/opensuse-security-announce/2020-01/msg00024.html
vendor-advisory, web, mailing-list, third-party-advisory, advisory
-
lists.debian.org
/debian-lts-announce/2020/01/msg00011.html
mailing-list, web, third-party-advisory, advisory
-
github.com
/MarkLee131/awesome-web-pocs/blob/main/CVE-2020-5504.md
web
-
nvd.nist.gov
/vuln/detail/CVE-2020-5504
advisory, web
-
github.com
/FriendsOfPHP/security-advisories/blob/master/phpmyadmin/phpmyadmin/CVE-2020-5504.yaml
web
-
github.com
/phpmyadmin/composer
package
-
phpmyadmin.net
/security/PMASA-2020-1
web
Sources
- CVE List CVE-2020-5504
- GitHub Advisory GHSA-fgj8-93xx-f6g6
- NVD CVE-2020-5504
- OSV BIT-phpmyadmin-2020-5504
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.