Every CVE Search/ Get API key

CVE-2020-5504

phpMyAdmin SQL injection in user accounts page

8.8 HighPublic exploitFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

28.0%Up 27.0 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 8.8

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.

Record
CVE-2020-5504
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
6.5 MediumAV:N/AC:L/Au:S/C:P/I:P/A:P
Weakness
CWE-89
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2020-5504
Updated
2026-11-02
EUVDEUVD-2022-3776 0.0

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.

Record
EUVD-2022-3776
CVSS
0.0 NoneCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
GitHub AdvisoriesGHSA-fgj8-93xx-f6g6 8.8

phpMyAdmin SQL injection in user accounts 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.

Record
GHSA-fgj8-93xx-f6g6
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-89
Updated
2026-11-02
OSVALPINE-CVE-2020-5504 8.8

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.

Record
ALPINE-CVE-2020-5504
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-03
OSV 8.8

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.

Record
CVE-2020-5504
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 9 moreShow less
OSVDEBIAN-CVE-2020-5504 8.8

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.

Record
DEBIAN-CVE-2020-5504
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-fgj8-93xx-f6g6 8.8

phpMyAdmin SQL injection in user accounts 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.

Record
GHSA-fgj8-93xx-f6g6
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-89
Updated
2026-11-02
OSVUBUNTU-CVE-2020-5504 8.8

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.

Record
UBUNTU-CVE-2020-5504
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVBIT-phpmyadmin-2020-5504 No score

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.

Record
BIT-phpmyadmin-2020-5504
Updated
2026-11-02
OSVMGASA-2020-0033 No score

Updated phpmyadmin packages fix security vulnerability

Updated phpmyadmin package fix security vulnerability:

A SQL injection flaw has been discovered 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 (CVE-2020-5504).

Record
MGASA-2020-0033
Updated
2026-11-02
OSVopenSUSE-SU-2020:0056-1 No score

Security update for phpMyAdmin

This update for phpMyAdmin to version 4.9.4 fixes the following issues:

  • CVE-2020-5504: SQL injection in user accounts page (boo#1160456).
Record
openSUSE-SU-2020:0056-1
Updated
2026-11-02
OSVopenSUSE-SU-2024:11171-1 No score

phpMyAdmin-5.1.1-1.2 on GA media

These are all security issues fixed in the phpMyAdmin-5.1.1-1.2 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:11171-1
Updated
2026-11-02
OSVUSN-4639-1 No score

phpmyadmin vulnerabilities

It was discovered that there was a bug in the way phpMyAdmin handles the phpMyAdmin Configuration Storage tables. An authenticated attacker could use this vulnerability to cause phpmyAdmin to leak sensitive files. (CVE-2018-19968)

It was discovered that phpMyAdmin incorrectly handled user input. An attacker could possibly use this for an XSS attack. (CVE-2018-19970)

It was discovered that phpMyAdmin mishandled certain input. An attacker could use this vulnerability to execute a cross-site scripting (XSS) attack via a crafted URL. (CVE-2018-7260)

It was discovered that phpMyAdmin failed to sanitize certain input. An attacker could use this vulnerability to execute an SQL injection attack via a specially crafted database name. (CVE-2019-11768)

It was discovered that phpmyadmin incorrectly handled some requests. An attacker could possibly use this to perform a CSRF attack. (CVE-2019-12616)

It was discovered that phpMyAdmin failed to sanitize certain input. An attacker could use this vulnerability to execute an SQL injection attack via a specially crafted username. (CVE-2019-6798, CVE-2020-10804, CVE-2020-5504)

It was discovered that phpMyAdmin would allow sensitive files to be leaked if certain configuration options were set. An attacker could use this vulnerability to access confidential information. (CVE-2019-6799)

It was discovered that phpMyAdmin failed to sanitize certain input. An attacker could use this vulnerability to execute an SQL injection attack via a specially crafted database or table name. (CVE-2020-10802)

It was discovered that phpMyAdmin did not properly handle data from the database when displaying it. If an attacker were to insert specially- crafted data into certain database tables, the attacker could execute a cross-site scripting (XSS) attack. (CVE-2020-10803)

It was discovered that phpMyAdmin was vulnerable to an XSS attack. If a victim were to click on a crafted link, an attacker could run malicious JavaScript on the victim's system. (CVE-2020-26934)

It was discovered that phpMyAdmin did not properly handler certain SQL statements in the search feature. An attacker could use this vulnerability to inject malicious SQL into a query. (CVE-2020-26935)

It was discovered that phpMyAdmin did not properly sanitize certain input. An attacker could use this vulnerability to possibly execute an HTML injection or a cross-site scripting (XSS) attack. (CVE-2019-19617)

Record
USN-4639-1
Updated
2026-11-02
OSVUSN-4843-1 No score

phpmyadmin vulnerabilities

Javier Nieto and Andres Rojas discovered that phpMyAdmin incorrectly managed input in the form of passwords. An attacker could use this vulnerability to cause a denial-of-service (DoS). This issue only affected Ubuntu 14.04 ESM. (CVE-2014-9218)

Emanuel Bronshtein discovered that phpMyAdmin failed to properly sanitize input in the form of database names in the PHP Array export feature. An authenticated attacker could use this vulnerability to run arbitrary PHP commands. This issue only affected Ubuntu 14.04 ESM and Ubuntu 16.04 ESM. (CVE-2016-6609)

Emanuel Bronshtein discovered that phpMyAdmin failed to properly sanitize input. An attacker could use this vulnerability to execute SQL injection attacks. This issue only affected Ubuntu 14.04 ESM and Ubuntu 16.04 ESM. (CVE-2016-6619)

Emanuel Bronshtein discovered that phpMyadmin failed to properly sanitize input. An authenticated attacker could use this vulnerability to cause a denial-of-service (DoS). This issue only affected Ubuntu 14.04 ESM and Ubuntu 16.04 ESM. (CVE-2016-6630)

Emanuel Bronshtein discovered that phpMyAdmin failed to properly sanitize input. An attacker could use this vulnerability to bypass AllowRoot restrictions and deny rules for usernames. This issue only affected Ubuntu 14.04 ESM and Ubuntu 16.04 ESM. (CVE-2016-9849)

Emanuel Bronshtein discovered that phpMyAdmin would allow sensitive information to be leaked when the argument separator in a URL was not the default & value. An attacker could use this vulnerability to obtain the CSRF token of a user. This issue only affected Ubuntu 14.04 ESM and Ubuntu 16.04 ESM. (CVE-2016-9866)

Isaac Bennetch discovered that phpMyAdmin was incorrectly restricting user access due to the behavior of the substr function on some PHP versions. An attacker could use this vulnerability to bypass login restrictions established for users that have no password set. This issue only affected Ubuntu 14.04 ESM. This issue only affected Ubuntu 14.04 ESM and Ubuntu 16.04 ESM. (CVE-2017-18264)

Emanuel Bronshtein discovered that phpMyAdmin failed to properly sanitize input in the form of parameters sent during a table editing operation. An attacker could use this vulnerability to trigger an endless recursion and cause a denial-of-service (DoS). This issue only affected Ubuntu 14.04 ESM and Ubuntu 16.04 ESM. (CVE-2017-1000014)

Emanuel Bronshtein discovered that phpMyAdmin failed to properly sanitize input used to generate a web page. An authenticated attacker could use this vulnerability to execute CSS injection attacks. This issue only affected Ubuntu 14.04 ESM and Ubuntu 16.04 ESM. (CVE-2017-1000015)

It was discovered that phpMyAdmin incorrectly handled certain input. An attacker could use this vulnerability to execute a cross-site scripting (XSS) attack via a crafted URL. This issue only affected Ubuntu 16.04 ESM. (CVE-2018-7260)

It was discovered phpMyAdmin incorrectly handled database names. An attacker could possibly use this to trigger a cross-site scripting attack. This issue only affected Ubuntu 16.04 ESM and Ubuntu 18.04 ESM. (CVE-2018-12581)

Daniel Le Gall discovered that phpMyAdmin would expose sensitive information to unauthorized actors due to an error in its transformation feature. An authenticated attacker could use this vulnerability to leak the contents of a local file. This issue only affected Ubuntu 14.04 ESM and Ubuntu 16.04 ESM. (CVE-2018-19968)

It was discovered that phpMyAdmin incorrectly handled user input. An attacker could possibly use this to perform a cross-site scripting attack. This issue only affected Ubuntu 16.04 ESM. (CVE-2018-19970)

It was discovered that phpMyAdmin failed to properly sanitize input. An attacker could use this vulnerability to execute an SQL injection attack via a specially crafted database name. This issue only affected Ubuntu 16.04 ESM. (CVE-2019-11768)

It was discovered that phpMyAdmin incorrectly handled some requests. An attacker could possibly use this to perform a cross…

Record
USN-4843-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
phpmyadmin/phpmyadmin
Packagist
4.0.0 up to 4.9.4
4.9.4
phpmyadmin/phpmyadmin
Packagist
5.0.0 up to 5.0.1
5.0.1
phpmyadmin
Alpine:v3.11
4.0.0 up to 4.9.4-r0
4.9.4-r0
phpmyadmin
Alpine:v3.12
4.0.0 up to 5.0.1-r0
5.0.1-r0
phpmyadmin
Alpine:v3.13
4.0.0 up to 5.0.1-r0
5.0.1-r0
phpmyadmin
Alpine:v3.14
4.0.0 up to 5.0.1-r0
5.0.1-r0
phpmyadmin
Alpine:v3.15
4.0.0 up to 5.0.1-r0
5.0.1-r0
phpmyadmin
Alpine:v3.16
4.0.0 up to 5.0.1-r0
5.0.1-r0
phpmyadmin
Alpine:v3.17
4.0.0 up to 5.0.1-r0
5.0.1-r0
phpmyadmin
Alpine:v3.18
4.0.0 up to 5.0.1-r0
5.0.1-r0
Show 31 moreShow less
Affected packages
PackageAffectedFixed
phpmyadmin
Alpine:v3.19
4.0.0 up to 5.0.1-r0
5.0.1-r0
phpmyadmin
Alpine:v3.20
4.0.0 up to 5.0.1-r0
5.0.1-r0
phpmyadmin
Alpine:v3.21
4.0.0 up to 5.0.1-r0
5.0.1-r0
phpmyadmin
Alpine:v3.22
4.0.0 up to 5.0.1-r0
5.0.1-r0
phpmyadmin
Alpine:v3.23
4.0.0 up to 5.0.1-r0
5.0.1-r0
phpmyadmin
Alpine:v3.24
4.0.0 up to 5.0.1-r0
5.0.1-r0
phpmyadmin
Bitnami
4.0.0 up to 4.9.4, 5.0.0 up to 5.0.1
4.9.45.0.1
phpmyadmin
Debian:12
before 4:4.9.4+dfsg1-1
4:4.9.4+dfsg1-1
phpmyadmin
Debian:13
before 4:4.9.4+dfsg1-1
4:4.9.4+dfsg1-1
phpmyadmin
Debian:14
before 4:4.9.4+dfsg1-1
4:4.9.4+dfsg1-1
phpmyadmin
Debian:8
before 4:4.2.12-2+deb8u8, plus listed versions
4:4.2.12-24:4.2.12-2+deb8u14:4.2.12-2+deb8u24:4.2.12-2+deb8u34:4.2.12-2+deb8u44:4.2.12-2+deb8u54:4.2.12-2+deb8u64:4.2.12-2+deb8u7
4:4.2.12-2+deb8u8
phpmyadmin/phpmyadmin
Packagist
4.0.0 up to 4.9.4, plus listed versions
4.0.14.0.104.0.10.14.0.10.24.0.10.3
Show 38 moreShow less
4.0.10.44.0.10.54.0.10.64.0.10.74.0.10.84.0.10.94.0.24.0.34.0.44.0.4.14.0.4.24.0.54.0.64.0.74.0.84.0.94.7.04.7.14.7.24.7.34.7.44.7.54.7.64.7.74.7.84.7.94.8.04.8.0.14.8.14.8.24.8.34.8.44.8.54.9.04.9.0.14.9.14.9.24.9.3
4.9.4
phpmyadmin/phpmyadmin
Packagist
5.0.0 up to 5.0.1, plus listed versions
5.0.0.1
5.0.1
phpmyadmin
Mageia:7
before 4.9.4-1.mga7
4.9.4-1.mga7
phpmyadmin
Ubuntu:Pro:16.04:LTS
before 4:4.5.4.1-2ubuntu2.1+esm6, plus listed versions
4:4.4.13.1-14:4.5.0.2-24:4.5.1-14:4.5.1-24:4.5.1-3
Show 12 moreShow less
4:4.5.2-14:4.5.2-24:4.5.3.1-14:4.5.4-14:4.5.4.1-24:4.5.4.1-2ubuntu14:4.5.4.1-2ubuntu24:4.5.4.1-2ubuntu2.14:4.5.4.1-2ubuntu2.1+esm24:4.5.4.1-2ubuntu2.1+esm34:4.5.4.1-2ubuntu2.1+esm44:4.5.4.1-2ubuntu2.1+esm5
4:4.5.4.1-2ubuntu2.1+esm6
phpmyadmin
Ubuntu:18.04:LTS
before 4:4.6.6-5ubuntu0.5, plus listed versions
4:4.6.6-5
4:4.6.6-5ubuntu0.5
phpmyadmin
Ubuntu:22.04:LTS
All versions, plus listed versions
4:5.0.4+dfsg2-2ubuntu54:5.1.1+dfsg1-5ubuntu1
None known
phpmyadmin
Ubuntu:24.04:LTS
All versions, plus listed versions
4:5.2.1+dfsg-1ubuntu14:5.2.1+dfsg-2ubuntu14:5.2.1+dfsg-2ubuntu24:5.2.1+dfsg-3
None known
phpmyadmin
Ubuntu:25.10
All versions, plus listed versions
4:5.2.2-really5.2.2+20250121+dfsg-14:5.2.2-really+dfsg-14:5.2.2-really+dfsg-2
None known
phpmyadmin
Ubuntu:26.10
All versions, plus listed versions
4:5.2.3+dfsg-14:5.2.4~dev~git20260809.e0909b211b+dfsg-1
None known
phpmyadmin
Ubuntu:26.04:LTS
All versions, plus listed versions
4:5.2.2-really+dfsg-24:5.2.3+dfsg-1
None known
phpmyadmin
Ubuntu:18.04:LTS
From an advisory covering 14 CVEs
before 4:4.6.6-5ubuntu0.5, plus listed versions
4:4.6.6-5
4:4.6.6-5ubuntu0.5
phpmyadmin
Ubuntu:Pro:14.04:LTS
From an advisory covering 21 CVEs
before 4:4.0.10-1ubuntu0.1+esm4, plus listed versions
4:4.0.6-14:4.0.8-14:4.0.9-14:4.0.10-14:4.0.10-1ubuntu0.14:4.0.10-1ubuntu0.1+esm14:4.0.10-1ubuntu0.1+esm24:4.0.10-1ubuntu0.1+esm3
4:4.0.10-1ubuntu0.1+esm4
phpmyadmin
Ubuntu:Pro:16.04:LTS
From an advisory covering 21 CVEs
before 4:4.5.4.1-2ubuntu2.1+esm6, plus listed versions
4:4.4.13.1-14:4.5.0.2-24:4.5.1-14:4.5.1-24:4.5.1-3
Show 12 moreShow less
4:4.5.2-14:4.5.2-24:4.5.3.1-14:4.5.4-14:4.5.4.1-24:4.5.4.1-2ubuntu14:4.5.4.1-2ubuntu24:4.5.4.1-2ubuntu2.14:4.5.4.1-2ubuntu2.1+esm24:4.5.4.1-2ubuntu2.1+esm34:4.5.4.1-2ubuntu2.1+esm44:4.5.4.1-2ubuntu2.1+esm5
4:4.5.4.1-2ubuntu2.1+esm6
phpmyadmin
Ubuntu:Pro:18.04:LTS
From an advisory covering 21 CVEs
before 4:4.6.6-5ubuntu0.5+esm1, plus listed versions
4:4.6.6-54:4.6.6-5ubuntu0.2+esm14:4.6.6-5ubuntu0.2+esm24:4.6.6-5ubuntu0.5
4:4.6.6-5ubuntu0.5+esm1
phpmyadmin
Ubuntu:Pro:20.04:LTS
From an advisory covering 21 CVEs
before 4:4.9.5+dfsg1-2ubuntu0.1~esm1, plus listed versions
4:4.9.1+dfsg1-24:4.9.2+dfsg1-14:4.9.5+dfsg1-1ubuntu14:4.9.5+dfsg1-2
4:4.9.5+dfsg1-2ubuntu0.1~esm1
phpMyAdmin
SUSE:Package Hub 12
From an advisory covering 3 CVEs
before 4.9.4-bp151.3.12.1
4.9.4-bp151.3.12.1
phpMyAdmin
SUSE:Package Hub 15
From an advisory covering 3 CVEs
before 4.9.4-bp151.3.12.1
4.9.4-bp151.3.12.1
phpMyAdmin
SUSE:Package Hub 15 SP1
From an advisory covering 3 CVEs
before 4.9.4-bp151.3.12.1
4.9.4-bp151.3.12.1
phpMyAdmin
openSUSE:Leap 15.1
From an advisory covering 3 CVEs
before 4.9.4-bp151.3.12.1
4.9.4-bp151.3.12.1
phpMyAdmin
openSUSE:Tumbleweed
From an advisory covering 31 CVEs
before 5.1.1-1.2
5.1.1-1.2

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubxMohamed0/CVE-2020-5504-phpMyAdmin2021-11-14
Exploit-DBphpMyAdmin 5.0.0 - SQL Injection2025-12-03
PoC in GitHubCerberusMrXi/phpMyAdmin-CVE-2020-5504-Exploit2026-08-23

History

History
RecordedChangedSources
affected, facts
affected, aliases, exploits, referencesOSV
first indexedCVE List, EUVD, Exploit-DB, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2020-5504 is a high vulnerability (CVSS 8.8) in Phpmyadmin, published January 8, 2020. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 28.0%, the 98th percentile. Fixed in phpmyadmin/phpmyadmin 4.9.4.

References

Show 73 moreShow less
This page doesn't list everything

Left out here: the rest of 1 source description. The JSON record has them.

MoveEnter Open