cve.bz

CVE-2020-5504 SQL Injection

8.8 highExploitEPSS 28%Fix available

High (8.8). EPSS 28% estimated probability of exploitation activity in the next 30 days. Fixed in phpmyadmin/phpmyadmin 4.9.4, 5.0.1.

On this 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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
28% (unchanged from 28% a week ago; 39% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-89 Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-5504 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-5504?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-5504?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-5504 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
phpmyadmin:phpmyadminfrom 4.0.0 before 4.9.4
phpmyadmin:phpmyadminfrom 5.0.0 before 5.0.1
suse:suse_linux_enterprise_server12
debian:debian_linux8.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fgj8-93xx-f6g6Packagistphpmyadmin/phpmyadmin>=4.0.0 <4.9.44.9.4
GHSA-fgj8-93xx-f6g6Packagistphpmyadmin/phpmyadmin>=5.0.0 <5.0.15.0.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8phpmyadmin4:4.2.12-2+deb8u8DLA-2060-1
Debian12, 13, 14phpmyadmin4:4.9.4+dfsg1-1DEBIAN-CVE-2020-5504
Ubuntu18.04:LTSphpmyadmin4:4.6.6-5ubuntu0.5UBUNTU-CVE-2020-5504 USN-4639-1
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 morephpmyadminno fix listedUBUNTU-CVE-2020-5504
UbuntuPro:14.04:LTSphpmyadmin4:4.0.10-1ubuntu0.1+esm4USN-4843-1
UbuntuPro:16.04:LTSphpmyadmin4:4.5.4.1-2ubuntu2.1+esm6UBUNTU-CVE-2020-5504 USN-4843-1
UbuntuPro:18.04:LTSphpmyadmin4:4.6.6-5ubuntu0.5+esm1USN-4843-1
UbuntuPro:20.04:LTSphpmyadmin4:4.9.5+dfsg1-2ubuntu0.1~esm1USN-4843-1
SUSEPackage Hub 12, Package Hub 15, Package Hub 15 SP1phpMyAdmin4.9.4-bp151.3.12.1openSUSE-SU-2020:0056-1
openSUSELeap 15.1phpMyAdmin4.9.4-bp151.3.12.1openSUSE-SU-2020:0056-1
openSUSETumbleweedphpMyAdmin5.1.1-1.2openSUSE-SU-2024:11171-1
Alpinev3.11phpmyadmin4.9.4-r0ALPINE-CVE-2020-5504
Alpinev3.12, v3.13, v3.14 and 10 morephpmyadmin5.0.1-r0ALPINE-CVE-2020-5504

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • CerberusMrXi/phpMyAdmin-CVE-2020-5504-Exploit Harbor Check: matches CVE 0 stars, Python, created
    Professional PHPMyAdmin 5.0.0 SQL Injection (CVE-2020-5504) exploitation framework with automated database enumeration, table extraction, a…

Attack patterns (CAPEC)

  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-66 SQL Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-109 Object Relational Mapping Injection Likelihood: Low · Severity: High
  • CAPEC-110 SQL Injection through SOAP Parameter Tampering Likelihood: High · Severity: Very High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON