CVE-2020-10804
phpMyAdmin SQL Injection
In phpMyAdmin 4.x before 4.9.5 and 5.x before 5.0.2, a SQL injection vulnerability was found in retrieval of the current username (in libraries/classes/Server/Privileges.php and libraries/classes/UserPassword.php). A malicious user with access to the server could create a crafted username, and then trick the victim into performing specific actions with that user account (such as editing its privileges).
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.0
In phpMyAdmin 4.x before 4.9.5 and 5.x before 5.0.2, a SQL injection vulnerability was found in retrieval of the current username (in libraries/classes/Server/Privileges.php and libraries/classes/UserPassword.php). A malicious user with access to the server could create a crafted username, and then trick the victim into performing specific actions with that user account (such as editing its privileges).
- Record
CVE-2020-10804- CVSS 3.1
- 8.0 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.0 Medium
AV:N/AC:M/Au:S/C:P/I:P/A:P - Weakness
- CWE-89
- Updated
- 2026-11-02
CVE List No score
In phpMyAdmin 4.x before 4.9.5 and 5.x before 5.0.2, a SQL injection vulnerability was found in retrieval of the current username (in libraries/classes/Server/Privileges.php and libraries/classes/UserPassword.php). A malicious user with access to the server could create a crafted username, and then trick the victim into performing specific actions with that user account (such as editing its privileges).
- Record
CVE-2020-10804- Updated
- 2026-11-02
EUVDEUVD-2022-4079 No score
In phpMyAdmin 4.x before 4.9.5 and 5.x before 5.0.2, a SQL injection vulnerability was found in retrieval of the current username (in libraries/classes/Server/Privileges.php and libraries/classes/UserPassword.php). A malicious user with access to the server could create a crafted username, and then trick the victim into performing specific actions with that user account (such as editing its privileges).
- Record
EUVD-2022-4079- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-h65r-8fp8-w7cx
8.0
phpMyAdmin SQL Injection
In phpMyAdmin 4.x before 4.9.5 and 5.x before 5.0.2, a SQL injection vulnerability was found in retrieval of the current username (in libraries/classes/Server/Privileges.php and libraries/classes/UserPassword.php). A malicious user with access to the server could create a crafted username, and then trick the victim into performing specific actions with that user account (such as editing its privileges).
- Record
GHSA-h65r-8fp8-w7cx- CVSS 3.1
- 8.0 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-89
- Updated
- 2026-11-02
OSVALPINE-CVE-2020-10804
8.0
In phpMyAdmin 4.x before 4.9.5 and 5.x before 5.0.2, a SQL injection vulnerability was found in retrieval of the current username (in libraries/classes/Server/Privileges.php and libraries/classes/UserPassword.php). A malicious user with access to the server could create a crafted username, and then trick the victim into performing specific actions with that user account (such as editing its privileges).
- Record
ALPINE-CVE-2020-10804- CVSS 3.1
- 8.0 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSV
8.0
In phpMyAdmin 4.x before 4.9.5 and 5.x before 5.0.2, a SQL injection vulnerability was found in retrieval of the current username (in libraries/classes/Server/Privileges.php and libraries/classes/UserPassword.php). A malicious user with access to the server could create a crafted username, and then trick the victim into performing specific actions with that user account (such as editing its privileges).
- Record
CVE-2020-10804- CVSS 3.1
- 8.0 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 10 moreShow less
OSVDEBIAN-CVE-2020-10804
8.0
In phpMyAdmin 4.x before 4.9.5 and 5.x before 5.0.2, a SQL injection vulnerability was found in retrieval of the current username (in libraries/classes/Server/Privileges.php and libraries/classes/UserPassword.php). A malicious user with access to the server could create a crafted username, and then trick the victim into performing specific actions with that user account (such as editing its privileges).
- Record
DEBIAN-CVE-2020-10804- CVSS 3.1
- 8.0 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVGHSA-h65r-8fp8-w7cx
8.0
phpMyAdmin SQL Injection
In phpMyAdmin 4.x before 4.9.5 and 5.x before 5.0.2, a SQL injection vulnerability was found in retrieval of the current username (in libraries/classes/Server/Privileges.php and libraries/classes/UserPassword.php). A malicious user with access to the server could create a crafted username, and then trick the victim into performing specific actions with that user account (such as editing its privileges).
- Record
GHSA-h65r-8fp8-w7cx- CVSS 3.1
- 8.0 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-89
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2020-10804
8.0
In phpMyAdmin 4.x before 4.9.5 and 5.x before 5.0.2, a SQL injection vulnerability was found in retrieval of the current username (in libraries/classes/Server/Privileges.php and libraries/classes/UserPassword.php). A malicious user with access to the server could create a crafted username, and then trick the victim into performing specific actions with that user account (such as editing its privileges).
- Record
UBUNTU-CVE-2020-10804- CVSS 3.1
- 8.0 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVBIT-phpmyadmin-2020-10804 No score
In phpMyAdmin 4.x before 4.9.5 and 5.x before 5.0.2, a SQL injection vulnerability was found in retrieval of the current username (in libraries/classes/Server/Privileges.php and libraries/classes/UserPassword.php). A malicious user with access to the server could create a crafted username, and then trick the victim into performing specific actions with that user account (such as editing its privileges).
- Record
BIT-phpmyadmin-2020-10804- Updated
- 2026-11-02
OSVMGASA-2020-0150 No score
Updated phpmyadmin packages fix security vulnerability
Some SQL injections via table names and parameters were fixed.
- Record
MGASA-2020-0150- Updated
- 2026-11-02
OSVopenSUSE-SU-2020:0405-1 No score
Security update for phpMyAdmin
This update for phpMyAdmin to version 4.9.5 fixes the following issues:
-
phpmyadmin was updated to 4.9.5:
-
CVE-2020-10804: Fixed an SQL injection in the user accounts page, particularly when changing a password (boo#1167335 PMASA-2020-2).
-
CVE-2020-10802: Fixed an SQL injection in the search feature (boo#1167336 PMASA-2020-3).
-
CVE-2020-10803: Fixed an SQL injection and XSS when displaying results (boo#1167337 PMASA-2020-4).
-
Removed the 'options' field for the external transformation.
- Record
openSUSE-SU-2020:0405-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2020:0427-1 No score
Security update for phpMyAdmin
This update for phpMyAdmin to version 4.9.5 fixes the following issues:
-
phpmyadmin was updated to 4.9.5:
-
CVE-2020-10804: Fixed an SQL injection in the user accounts page, particularly when changing a password (boo#1167335 PMASA-2020-2).
-
CVE-2020-10802: Fixed an SQL injection in the search feature (boo#1167336 PMASA-2020-3).
-
CVE-2020-10803: Fixed an SQL injection and XSS when displaying results (boo#1167337 PMASA-2020-4).
-
Removed the 'options' field for the external transformation.
This update was imported from the openSUSE:Leap:15.1:Update update project.
- Record
openSUSE-SU-2020:0427-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2020:1806-1 No score
Security update for phpMyAdmin
This update for phpMyAdmin fixes the following issues:
phpMyAdmin was updated to 4.9.7 (boo#1177842):
- Fix two factor authentication that was broken in 4.9.6
- Fix incompatibilities with older PHP versions
Update to 4.9.6:
- Fixed XSS relating to the transformation feature (boo#1177561 CVE-2020-26934, PMASA-2020-5)
- Fixed SQL injection vulnerability in SearchController (boo#1177562 CVE-2020-26935, PMASA-2020-6)
Update to 4.9.5:
This is a security release containing several bug fixes.
- CVE-2020-10804: SQL injection vulnerability in the user accounts page, particularly when changing a password (boo#1167335, PMASA-2020-2)
- CVE-2020-10802: SQL injection vulnerability relating to the search feature (boo#1167336, PMASA-2020-3)
- CVE-2020-10803: SQL injection and XSS having to do with displaying results (boo#1167337, PMASA-2020-4)
- Removing of the 'options' field for the external transformation.
- Record
openSUSE-SU-2020:1806-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
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
phpmyadmin/phpmyadminPackagist |
4.9.0 up to 4.9.5 | 4.9.5 |
phpmyadmin/phpmyadminPackagist |
5.0.0 up to 5.0.2 | 5.0.2 |
phpmyadminAlpine:v3.11 |
4.0.0 up to 4.9.5-r0 | 4.9.5-r0 |
phpmyadminAlpine:v3.12 |
4.0.0 up to 5.0.2-r0 | 5.0.2-r0 |
phpmyadminAlpine:v3.13 |
4.0.0 up to 5.0.2-r0 | 5.0.2-r0 |
phpmyadminAlpine:v3.14 |
4.0.0 up to 5.0.2-r0 | 5.0.2-r0 |
phpmyadminAlpine:v3.15 |
4.0.0 up to 5.0.2-r0 | 5.0.2-r0 |
phpmyadminAlpine:v3.16 |
4.0.0 up to 5.0.2-r0 | 5.0.2-r0 |
phpmyadminAlpine:v3.17 |
4.0.0 up to 5.0.2-r0 | 5.0.2-r0 |
phpmyadminAlpine:v3.18 |
4.0.0 up to 5.0.2-r0 | 5.0.2-r0 |
Show 25 moreShow less
| Package | Affected | Fixed |
|---|---|---|
phpmyadminAlpine:v3.19 |
4.0.0 up to 5.0.2-r0 | 5.0.2-r0 |
phpmyadminAlpine:v3.20 |
4.0.0 up to 5.0.2-r0 | 5.0.2-r0 |
phpmyadminAlpine:v3.21 |
4.0.0 up to 5.0.2-r0 | 5.0.2-r0 |
phpmyadminAlpine:v3.22 |
4.0.0 up to 5.0.2-r0 | 5.0.2-r0 |
phpmyadminAlpine:v3.23 |
4.0.0 up to 5.0.2-r0 | 5.0.2-r0 |
phpmyadminAlpine:v3.24 |
4.0.0 up to 5.0.2-r0 | 5.0.2-r0 |
phpmyadminBitnami |
4.0.0 up to 4.9.5, 5.0.0 up to 5.0.2 | 4.9.55.0.2 |
phpmyadminDebian:12 |
before 4:4.9.5+dfsg1-1 | 4:4.9.5+dfsg1-1 |
phpmyadminDebian:13 |
before 4:4.9.5+dfsg1-1 | 4:4.9.5+dfsg1-1 |
phpmyadminDebian:14 |
before 4:4.9.5+dfsg1-1 | 4:4.9.5+dfsg1-1 |
phpmyadmin/phpmyadminPackagist |
4.9.0 up to 4.9.5, plus listed versions 4.9.0.14.9.14.9.24.9.34.9.4 |
4.9.5 |
phpmyadmin/phpmyadminPackagist |
5.0.0 up to 5.0.2, plus listed versions 5.0.0.15.0.1 |
5.0.2 |
phpmyadminMageia:7 From an advisory covering 3 CVEs |
before 4.9.5-1.mga7 | 4.9.5-1.mga7 |
phpmyadminUbuntu:Pro:14.04:LTS |
All versions, plus listed versions 4:4.0.6-14:4.0.8-14:4.0.9-14:4.0.10-14:4.0.10-1ubuntu0.1 Show 4 moreShow less4:4.0.10-1ubuntu0.1+esm14:4.0.10-1ubuntu0.1+esm24:4.0.10-1ubuntu0.1+esm34:4.0.10-1ubuntu0.1+esm4 |
None known |
phpmyadminUbuntu:Pro:16.04:LTS |
All versions, 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 13 moreShow less4: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+esm54:4.5.4.1-2ubuntu2.1+esm6 |
None known |
phpmyadminUbuntu:18.04:LTS |
before 4:4.6.6-5ubuntu0.5, plus listed versions 4:4.6.6-5 |
4:4.6.6-5ubuntu0.5 |
phpmyadminUbuntu: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 |
phpMyAdminSUSE:Package Hub 12 From an advisory covering 3 CVEs |
before 4.9.5-43.1 | 4.9.5-43.1 |
phpMyAdminopenSUSE:Leap 15.1 From an advisory covering 3 CVEs |
before 4.9.5-43.1 | 4.9.5-43.1 |
phpMyAdminSUSE:Package Hub 15 SP1 From an advisory covering 3 CVEs |
before 4.9.5-bp151.3.15.1 | 4.9.5-bp151.3.15.1 |
phpMyAdminSUSE:Package Hub 12 From an advisory covering 5 CVEs |
before 4.9.7-bp151.3.24.1 | 4.9.7-bp151.3.24.1 |
phpMyAdminSUSE:Package Hub 15 From an advisory covering 5 CVEs |
before 4.9.7-bp151.3.24.1 | 4.9.7-bp151.3.24.1 |
phpMyAdminSUSE:Package Hub 15 SP1 From an advisory covering 5 CVEs |
before 4.9.7-bp151.3.24.1 | 4.9.7-bp151.3.24.1 |
phpMyAdminopenSUSE:Leap 15.1 From an advisory covering 5 CVEs |
before 4.9.7-bp151.3.24.1 | 4.9.7-bp151.3.24.1 |
phpMyAdminopenSUSE:Tumbleweed From an advisory covering 31 CVEs |
before 5.1.1-1.2 | 5.1.1-1.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, references | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2020-10804 is a high vulnerability (CVSS 8.0) in Phpmyadmin, published March 22, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.35%, the 83rd percentile. Fixed in phpmyadmin/phpmyadmin 4.9.5.
References
phpmyadmin.net/security/PMASA-2020-2
lists.opensuse.org/opensuse-security-announce/2020-03/msg00046.html
lists.opensuse.org/opensuse-security-announce/2020-03/msg00050.html
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UZI6EQVRRIG252DY3MBT33BJVCSYDMQO
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AAVW3SUKWR5RF5LZ6SARCYOWBIFUIWOJ
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BUG3IRITW2LUBGR5LSQMP7MVRTELHZJK
Show 71 moreShow less
lists.opensuse.org/opensuse-security-announce/2020-11/msg00005.html
nvd.nist.gov/vuln/detail/CVE-2020-10804
github.com/FriendsOfPHP/security-advisories/blob/master/phpmyadmin/phpmyadmin/CVE-2020-10804.yaml
lists.fedoraproject.org/archives/list/[email protected]/message/AAVW3SUKWR5RF5LZ6SARCYOWBIFUIWOJ
lists.fedoraproject.org/archives/list/[email protected]/message/BUG3IRITW2LUBGR5LSQMP7MVRTELHZJK
lists.fedoraproject.org/archives/list/[email protected]/message/UZI6EQVRRIG252DY3MBT33BJVCSYDMQO
github.com/advisories/GHSA-h65r-8fp8-w7cx
security.alpinelinux.org/vuln/CVE-2020-10804
security-tracker.debian.org/tracker/CVE-2020-10804
github.com/phpmyadmin/composer
advisories.mageia.org/MGASA-2020-0150.html
bugs.mageia.org/show_bug.cgi?id=26372
phpmyadmin.net/news/2020/3/21/phpmyadmin-495-and-502-are-released
ubuntu.com/security/CVE-2020-10804
github.com/phpmyadmin/phpmyadmin/commit/89fbcd7c39e6b3979cdb2f64aa4cd5f4db27eaad
github.com/phpmyadmin/phpmyadmin/commit/3258978c38bee8cb4b99f249dffac9c8aaea2d80
ubuntu.com/security/notices/USN-4639-1
cve.org/CVERecord?id=CVE-2020-10804
ubuntu.com/security/CVE-2018-7260
ubuntu.com/security/CVE-2018-19968
ubuntu.com/security/CVE-2018-19970
ubuntu.com/security/CVE-2019-6798
ubuntu.com/security/CVE-2019-6799
ubuntu.com/security/CVE-2019-11768
ubuntu.com/security/CVE-2019-12616
ubuntu.com/security/CVE-2019-19617
ubuntu.com/security/CVE-2020-5504
ubuntu.com/security/CVE-2020-10802
ubuntu.com/security/CVE-2020-10803
ubuntu.com/security/CVE-2020-26934
ubuntu.com/security/CVE-2020-26935
lists.opensuse.org/archives/list/[email protected]/thread/7767YODHXD55I7XUDQWROFHBML4MXA2P
bugzilla.suse.com/1167335
bugzilla.suse.com/1167336
bugzilla.suse.com/1167337
suse.com/security/cve/CVE-2020-10802
suse.com/security/cve/CVE-2020-10803
suse.com/security/cve/CVE-2020-10804
lists.opensuse.org/archives/list/[email protected]/thread/SCTHN34UUFD4SUA5QZOA62C63LIEO2ML
lists.opensuse.org/archives/list/[email protected]/thread/KALR6PYMDCEFCQ6GUH5PGVPKTXVHV3YS
bugzilla.suse.com/1177561
bugzilla.suse.com/1177562
bugzilla.suse.com/1177842
suse.com/security/cve/CVE-2020-26934
suse.com/security/cve/CVE-2020-26935
suse.com/security/cve/CVE-2005-2869
suse.com/security/cve/CVE-2006-1804
suse.com/security/cve/CVE-2006-2031
suse.com/security/cve/CVE-2015-8980
suse.com/security/cve/CVE-2017-1000013
suse.com/security/cve/CVE-2017-1000014
suse.com/security/cve/CVE-2017-1000015
suse.com/security/cve/CVE-2017-1000016
suse.com/security/cve/CVE-2017-1000017
suse.com/security/cve/CVE-2017-1000018
suse.com/security/cve/CVE-2017-1000499
suse.com/security/cve/CVE-2018-10188
suse.com/security/cve/CVE-2018-12581
suse.com/security/cve/CVE-2018-12613
suse.com/security/cve/CVE-2018-15605
suse.com/security/cve/CVE-2018-19968
suse.com/security/cve/CVE-2018-19969
suse.com/security/cve/CVE-2018-19970
suse.com/security/cve/CVE-2018-7260
suse.com/security/cve/CVE-2019-11768
suse.com/security/cve/CVE-2019-12616
suse.com/security/cve/CVE-2019-12922
suse.com/security/cve/CVE-2019-18622
suse.com/security/cve/CVE-2019-6798
suse.com/security/cve/CVE-2019-6799
suse.com/security/cve/CVE-2020-5504