CVE-2020-5504 in Debian Linux and 2 more products
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.
Affects 3 products from 3 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 8.0 |
| Phpmyadmin | Phpmyadmin | ≥ 4.0.0, < 4.9.4 ≥ 5.0.0, < 5.0.1 |
| Suse | Suse Linux Enterprise Server | 12 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2020-5504 |
|---|---|
| BreachSpider ID | BS-2020-GLOBAL-233557-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2020-01-09 |
| Last modified | 2025-04-16 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-89: SQL Injection
Attacker inserts SQL commands into application queries through user-controlled input, allowing unauthorized database access.
Related attack patterns (CAPEC)
CAPEC-7 Blind SQL Injection via CWE-89
CAPEC-108 Command Line Execution through SQL Injection via CWE-89
CAPEC-109 Object Relational Mapping Injection via CWE-89
CAPEC-110 SQL Injection through SOAP Parameter Tampering via CWE-89
CAPEC-470 Expanding Control over the Operating System from the Database via CWE-89
Show all 6
CAPEC-66 SQL Injection via CWE-89
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A SQL injection vulnerability exists in phpMyAdmin versions prior to 4.9.4 and 5.0.1, allowing a malicious user with a valid MySQL account to inject custom SQL queries on the user accounts page.
The vulnerability is located in the user accounts page where a malicious user can inject SQL code in place of their username when creating queries. This requires the attacker to have a valid MySQL account to access the server.
Questions
What is CVE-2020-5504?
A SQL injection vulnerability exists in phpMyAdmin versions prior to 4.9.4 and 5.0.1, allowing a malicious user with a valid MySQL account to inject custom SQL queries on the user accounts page.
What is the CVSS score for CVE-2020-5504?
CVE-2020-5504 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 28.0%.
Is CVE-2020-5504 actively exploited?
Public exploit available for CVE-2020-5504. Exploitation risk elevated.
How do I remediate CVE-2020-5504?
Priority: IMMEDIATE. Advisory: https://www.phpmyadmin.net/security/PMASA-2020-1/ PSIRT: [email protected]
What systems are affected by CVE-2020-5504?
CVE-2020-5504 affects Debian Debian Linux; Phpmyadmin Phpmyadmin; Suse Suse Linux Enterprise Server.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-04-16.