CVE-2020-10804
PHP vulnerability analysis and mitigation

Overview

CVE-2020-10804 is a SQL injection vulnerability discovered in phpMyAdmin versions 4.x before 4.9.5 and 5.x before 5.0.2. The vulnerability was found in the retrieval of the current username functionality, specifically in the libraries/classes/Server/Privileges.php and libraries/classes/UserPassword.php files. The issue was disclosed on March 22, 2020, and was assigned a CVSS v3.1 base score of 8.0 (High) (NVD).

Technical details

The vulnerability exists in how phpMyAdmin retrieves the current username. The affected code paths are in the Server/Privileges.php and UserPassword.php files. The issue received a CVSS v3.1 base score of 8.0 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H, indicating network accessibility, low attack complexity, and high impact on confidentiality, integrity, and availability. The vulnerability is classified as CWE-89 (SQL Injection) (NVD, phpMyAdmin).

Impact

If exploited, this vulnerability allows a malicious user with access to the server to create a specially-crafted username and then trick victims into performing specific actions with that user account, such as editing its privileges. The flaw could also generate server errors for users with certain characters who try to change their MySQL passwords (phpMyAdmin).

Mitigation and workarounds

The recommended mitigation is to upgrade to phpMyAdmin version 4.9.5 or 5.0.2 or newer. Patches were released in commits 89fbcd7c39e6b3979cdb2f64aa4cd5f4db27eaad and 3258978c38bee8cb4b99f249dffac9c8aaea2d80 to fix this issue (phpMyAdmin).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-21857HIGH8.3
  • PHPPHP
  • redaxo/source
NoYesJan 07, 2026
CVE-2025-61676MEDIUM6.1
  • PHPPHP
  • october/system
NoYesJan 10, 2026
CVE-2025-61674MEDIUM6.1
  • PHPPHP
  • october/system
NoYesJan 10, 2026
CVE-2026-21896MEDIUM5.8
  • PHPPHP
  • getkirby/cms
NoYesJan 08, 2026
CVE-2026-22242MEDIUM4.9
  • PHPPHP
  • coreshop/core-shop
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management