# CVE-2020-10804: phpMyAdmin SQL Injection

- Severity: High 8.0 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.35%, higher than 84% of CVEs (2026-12-01)
- Published: 2020-03-22T03:47:59.000Z
- Modified: 2026-09-08T08:48:24.782Z
- Also known as: GHSA-h65r-8fp8-w7cx, BIT-PHPMYADMIN-2020-10804
- Weaknesses: CWE-89
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- phpmyadmin/phpmyadmin (Packagist): from 4.9.0 before 4.9.5; from 5.0.0 before 5.0.2
- phpmyadmin phpmyadmin: from 4.0.0 before 4.9.5; from 5.0.0 before 5.0.2
- fedoraproject fedora: 30; 31; 32
- opensuse backports_sle: 15.0
- opensuse leap: 15.1
- suse package_hub: no versions given
- phpmyadmin (Bitnami): from 4.0.0 before 4.9.5; from 5.0.0 before 5.0.2

## Every score

- GitHub: 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`
- NVD: 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`
- NVD: CVSS:2.0 6.0 Medium `AV:N/AC:M/Au:S/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://www.phpmyadmin.net/security/PMASA-2020-2/> (advisory, vendor-advisory)
- <http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00046.html> (advisory, mailing-list, third-party-advisory, vendor-advisory, web)
- <http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00050.html> (advisory, 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.html> (advisory, mailing-list, third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-10804> (advisory, web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmyadmin/phpmyadmin/CVE-2020-10804.yaml> (web)
- <https://github.com/phpmyadmin/composer> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AAVW3SUKWR5RF5LZ6SARCYOWBIFUIWOJ> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BUG3IRITW2LUBGR5LSQMP7MVRTELHZJK> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UZI6EQVRRIG252DY3MBT33BJVCSYDMQO> (web)
- <https://www.phpmyadmin.net/security/PMASA-2020-2> (web)

## Sources

- CVE List: [CVE-2020-10804](https://www.cve.org/CVERecord?id=CVE-2020-10804), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-h65r-8fp8-w7cx](https://github.com/advisories/GHSA-h65r-8fp8-w7cx), CC-BY-4.0, modified 2024-04-24
- NVD: [CVE-2020-10804](https://nvd.nist.gov/vuln/detail/CVE-2020-10804), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-PHPMYADMIN-2020-10804](https://osv.dev/vulnerability/BIT-PHPMYADMIN-2020-10804), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-10804 · Whole record: https://cve.day/CVE-2020-10804.json · Rebuilt by cve.day 2026-11-25T22:57:51.595Z
