CVE-2020-5504phpMyAdmin SQL Injection
phpMyAdmin SQL injection in user accounts page
Published May 24, 2022 · Updated Sep 8, 2026 · Also known as BIT-phpmyadmin-2020-5504, DEBIAN-CVE-2020-5504, DLA-2060-1, GHSA-fgj8-93xx-f6g6, UBUNTU-CVE-2020-5504
Key Facts
Patch immediately- CVE-2020-5504 is a high-severity vulnerability (CVSS 8.8 v3.1) affecting phpMyAdmin, Debian Linux, Suse Linux Enterprise Server and 3 more products.
- It is not listed in any known-exploited vulnerabilities catalog. A public exploit is reported by tracking sources, but no code link is listed yet.
- EPSS estimates a 39% probability of exploitation in the next 30 days.
- Fixed versions are available, including phpMyAdmin 4:4.0.10-1ubuntu0.1+esm4, phpMyAdmin 4:4.2.12-2+deb8u8, phpMyAdmin 4:4.5.4.1-2ubuntu2.1+esm6.
- Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.
Scores
CVSS v3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
39%
Higher than 98.5% of all scored CVEs
Exploit maturity
Proof of concept
ATLAS score
44/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Proof of concept
Public exploit code
1
Proof-of-concept links
In-the-wild evidence
1
Reports of active use
Advisories And Exploit References
- advisoryhttps://github.com/FriendsOfPHP/security-advisories/blob/master/phpmyadmin/phpmyadmin/CVE-2020-5504.yaml
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2020-5504
- advisoryhttps://security-tracker.debian.org/tracker/CVE-2020-5504
- advisoryhttps://ubuntu.com/security/CVE-2020-5504
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2020-5504
- advisoryopenSUSE-SU-2020:0056
Description
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.
Affected Products
49 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| phpMyAdminPhpmyadmin | >= 4.0.0 | 4.9.4 |
| Debian LinuxDebian | 8.0 | n/a |
| Suse Linux Enterprise ServerSuse | 12 | n/a |
| phpmyadmin/phpmyadmincomposer | >= 5.0.0 | 5.0.1 |
| phpMyAdmin-apachesuse | See advisory | 5.1.1-1.2 |
Patched Releases
phpMyAdmin
4:4.0.10-1ubuntu0.1+esm4, 4:4.2.12-2+deb8u8, 4:4.5.4.1-2ubuntu2.1+esm6, 4:4.6.6-5ubuntu0.5, 4:4.6.6-5ubuntu0.5+esm1, 4:4.9.4+dfsg1-1, 4:4.9.5+dfsg1-2ubuntu0.1~esm1, 4.9.4, 4.9.4-r0, 5.0.1, 5.0.1-r0, 4.9.4-bp151.3.12.1, 5.1.1-1.2
phpMyAdmin-apache
5.1.1-1.2
phpMyAdmin-lang
5.1.1-1.2
phpmyadmin/phpmyadmin
4.9.4, 5.0.1
Timeline
Publicly disclosed
May 24, 2022
Last updated
Sep 8, 2026
Weakness Type
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
- advisorygithub.com · CVE-2020-5504
- advisorynvd.nist.gov · CVE-2020-5504
- advisorysecurity-tracker.debian.org · CVE-2020-5504
- advisoryubuntu.com · CVE-2020-5504
- advisorycve.org · CVERecord
FAQ
Common Questions.
In phpMyAdmin 4 before 4.9.4 and 5 before 5.0.1, SQL injection exists in the user accounts page.
Affected: phpMyAdmin versions >= 4.0.0; Debian Linux versions 8.0; Suse Linux Enterprise Server versions 12, among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
A public exploit is reported by tracking sources, but no code link is listed yet.
Fixed versions are available, including phpMyAdmin 4:4.0.10-1ubuntu0.1+esm4, phpMyAdmin 4:4.2.12-2+deb8u8, phpMyAdmin 4:4.5.4.1-2ubuntu2.1+esm6.
Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.
Is CVE-2020-5504 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo