CVE-2020-5504

HIGH

phpMyAdmin <4.9.4-5.0.1 - SQL Injection

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2020-5504. PoCs published by CodeSecLab, xMohamed0.

AI-analyzed exploit summary This exploit demonstrates a SQL injection vulnerability in phpMyAdmin 5.0.0 via the `username` parameter in `server_privileges.php`. The PoC uses a simple OR-based injection to bypass authentication validation.

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.

Exploits (2)

exploitdb WORKING POC
by CodeSecLab · textwebappsphp
https://www.exploit-db.com/exploits/52451

This exploit demonstrates a SQL injection vulnerability in phpMyAdmin 5.0.0 via the `username` parameter in `server_privileges.php`. The PoC uses a simple OR-based injection to bypass authentication validation.

Classification
Working Poc 90%
Attack Type
Sqli
Complexity
Trivial
Reliability
Reliable
Target: phpMyAdmin 5.0.0
Auth required
Prerequisites: Valid MySQL account · Active session cookie
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by xMohamed0 · poc
https://github.com/xMohamed0/CVE-2020-5504-phpMyAdmin

This repository contains a functional Python script that exploits CVE-2020-5504, a SQL injection vulnerability in phpMyAdmin versions 4 before 4.9.4 and 5 before 5.0.1. The exploit leverages a crafted request to extract data via SQL injection, demonstrating the vulnerability's impact.

Classification
Working Poc 95%
Attack Type
Sqli
Complexity
Moderate
Reliability
Reliable
Target: phpMyAdmin 4 before 4.9.4 and 5 before 5.0.1
Auth required
Prerequisites: Valid credentials for phpMyAdmin · Network access to the target phpMyAdmin instance
devstral-2 · analyzed Feb 18, 2026 Full analysis →

Scores

CVSS v3 8.8
EPSS 0.2219
EPSS Percentile 95.9%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-89
Status published
Products (4)
debian/debian_linux 8.0
phpmyadmin/phpmyadmin 4.0.0 - 4.9.4
phpmyadmin/phpmyadmin 4.0.0 - 4.9.4Packagist
suse/suse_linux_enterprise_server 12
Published Jan 09, 2020
Tracked Since Feb 18, 2026