CVE-2022-23808
Published: 22 January 2022
Summary
CVE-2022-23808 is a medium-severity Cross-site Scripting (CWE-79) vulnerability in Phpmyadmin Phpmyadmin. Its CVSS base score is 6.1 (Medium).
Operationally, ranked in the top 2.1% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
CVE-2022-23808 is a cross-site scripting vulnerability affecting phpMyAdmin versions 5.1 prior to 5.1.2. The flaw resides in the setup script, where insufficient input sanitization allows an attacker to inject malicious code that results in XSS or HTML injection, as classified under CWE-79. The issue carries a CVSS 3.1 base score of 6.1 with network attack vector, low complexity, no required privileges, required user interaction, and changed scope.
An unauthenticated remote attacker can exploit the vulnerability by crafting a malicious request that triggers the setup script, causing the injected code to execute in a victim's browser session. Successful exploitation can lead to limited impacts on confidentiality and integrity, such as session hijacking or unauthorized actions within the affected phpMyAdmin instance.
The official phpMyAdmin security announcement PMASA-2022-2 and the Gentoo GLSA 202311-17 both recommend upgrading to version 5.1.2 or later to remediate the issue, with no additional workarounds specified beyond patching.
The EPSS score for this CVE rose from lower values after disclosure to a peak of 0.6841 on 2025-12-11 before receding to the current 0.4936, indicating increased exploitation interest emerged well after the initial publication.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-0704
Vulnerability details
An issue was discovered in phpMyAdmin 5.1 before 5.1.2. An attacker can inject malicious code into aspects of the setup script, which can allow XSS or HTML injection.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.