CVE-2020-10804
JSON

8.0high

phpMyAdmin SQL Injection

Severity
8.0high CVSS:3.1 by NVD
Exploit likelihood
2.35% (higher than 84% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-h65r-8fp8-w7cxBIT-PHPMYADMIN-2020-10804

Description

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).

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
phpmyadmin/phpmyadmin (Packagist)from 4.9.0 before 4.9.5, from 5.0.0 before 5.0.2GitHub Advisory Database
phpmyadmin phpmyadminfrom 4.0.0 before 4.9.5, from 5.0.0 before 5.0.2NVD
fedoraproject fedora30, 31, 32NVD
opensuse backports_sle15.0NVD
opensuse leap15.1NVD
suse package_hubNot specifiedNVD
phpmyadmin (Bitnami)from 4.0.0 before 4.9.5, from 5.0.0 before 5.0.2Bitnami Vulnerability Database

All scores

GitHub8.0high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD8.0high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD6.0medium CVSS:2.0AV:N/AC:M/Au:S/C:P/I:P/A:P
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

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).

NVD (es)

En phpMyAdmin versiones 4.x anteriores a 4.9.5 y versiones 5.x anteriores a 5.0.2, se encontró una vulnerabilidad de inyección SQL en la recuperación del nombre de usuario actual (en las bibliotecas libraries/classes/Server/Privileges.php y libraries/classes/UserPassword.php). Un usuario malicioso con acceso al servidor podría crear un nombre de usuario diseñado y luego engañar a la víctima para que realice acciones específicas con esa cuenta de usuario (tal y como editar sus privilegios).

References

https://www.phpmyadmin.net/security/PMASA-2020-2/advisory, vendor-advisory
http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00046.htmladvisory, mailing-list, third-party-advisory, vendor-advisory, web
http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00050.htmladvisory, mailing-list, third-party-advisory, vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UZI6EQVRRIG252DY3MBT33BJVCSYDMQO/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AAVW3SUKWR5RF5LZ6SARCYOWBIFUIWOJ/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BUG3IRITW2LUBGR5LSQMP7MVRTELHZJK/vendor-advisory, web
http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00005.htmladvisory, mailing-list, third-party-advisory, vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2020-10804advisory, web
https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmyadmin/phpmyadmin/CVE-2020-10804.yamlweb
https://github.com/phpmyadmin/composerpackage
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AAVW3SUKWR5RF5LZ6SARCYOWBIFUIWOJweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BUG3IRITW2LUBGR5LSQMP7MVRTELHZJKweb

Sources

SourceRecordLicence
CVE ListCVE-2020-10804 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-h65r-8fp8-w7cx changed 2024-04-24CC-BY-4.0
NVDCVE-2020-10804 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-PHPMYADMIN-2020-10804 changed 2026-09-08Apache-2.0