Skip to content
Fencer Vulns
high 8.0

CVE-2020-10804 json

phpMyAdmin SQL Injection

published 2020-03-22 6 y ago modified 2026-09-08 2 mo ago also BIT-phpmyadmin-2020-10804 , EUVD-2022-4079 , GHSA-h65r-8fp8-w7cx

cvss
8.0
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.4%
EPSS 2.4% chance of exploitation in 30 days, percentile 83%
public exploits
0
none known

Summary

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

Patch / fix

  • packagist phpmyadmin/phpmyadmin 4.9.5, 5.0.2
  • bitnami phpmyadmin 4.9.5, 5.0.2
  • phpmyadmin phpmyadmin 4.9.5, 5.0.2
  • phpmyadmin Debian 14, Debian 13, Debian 12 4:4.9.5+dfsg1-1

debian advisories DEBIAN-CVE-2020-10804

  • phpmyadmin Ubuntu 18.04 LTS 4:4.6.6-5ubuntu0.5

ubuntu advisories UBUNTU-CVE-2020-10804

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • phpMyAdmin openSUSE Tumbleweed 5.1.1-1.2
  • phpMyAdmin Package Hub 15 SP1, Package Hub 15, Package Hub 12 +1 more 4.9.7-bp151.3.24.1
  • phpMyAdmin Package Hub 15 SP1 4.9.5-bp151.3.15.1
  • phpMyAdmin Package Hub 12, openSUSE Leap 15.1 4.9.5-43.1

opensuse advisories openSUSE-SU-2024:11171-1openSUSE-SU-2020:1806-1openSUSE-SU-2020:0427-1openSUSE-SU-2020:0405-1

  • phpmyadmin Alpine 3.11 4.9.5-r0
  • phpmyadmin Alpine 3.24, Alpine 3.23, Alpine 3.22 +10 more 5.0.2-r0

alpine advisories ALPINE-CVE-2020-10804

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2020-10804 updated cvss 8.0

phpMyAdmin: SQL injection was found in retrieval of the current username which could result privilege escalation

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.35% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
GitHub 3.1 8.0 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD 3.1 8.0 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD 2.0 6.0 AV:N/AC:M/Au:S/C:P/I:P/A:P
OSV 3.1 8.0 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
packagist phpmyadmin/phpmyadmin
>=4.9.0, <4.9.5
>=5.0.0, <5.0.2
4.9.5
5.0.2
bitnami phpmyadmin
>=4.0.0, <4.9.5
>=5.0.0, <5.0.2
4.9.5
5.0.2

Classification

Weakness
  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.