Skip to content
OpenAdvisories
Medium · 6.1 Scanner template Public exploit CVE-2022-23808 BIT-phpmyadmin-2022-23808EUVD-2022-0704GHSA-vcwc-6mr9-8m7c

Cross-site Scripting in phpmyadmin

Published Jan 22, 2022 · Updated May 5, 2025 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 phpmyadmin 4:5.1.3+dfsg1-1 —
Debian 13 phpmyadmin 4:5.1.3+dfsg1-1 —
Debian 12 phpmyadmin 4:5.1.3+dfsg1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 phpmyadmin No fix yet —
Ubuntu 26.04 LTS phpmyadmin No fix yet —
Ubuntu 25.10 phpmyadmin No fix yet —
Ubuntu 24.04 LTS phpmyadmin No fix yet —
Ubuntu 22.04 LTS phpmyadmin No fix yet —
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP4 phpMyAdmin 5.2.1-bp154.2.3.1 openSUSE-SU-2023:0047-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed phpMyAdmin 5.1.2-1.1 openSUSE-SU-2024:11765-1
openSUSE Leap 15.4 phpMyAdmin 5.2.1-bp154.2.3.1 openSUSE-SU-2023:0047-1
ReleasePackageFixed inAdvisory
Alpine v3.24 phpmyadmin 5.1.2-r0 —
Alpine v3.23 phpmyadmin 5.1.2-r0 —
Alpine v3.22 phpmyadmin 5.1.2-r0 —
Alpine v3.21 phpmyadmin 5.1.2-r0 —
Alpine v3.20 phpmyadmin 5.1.2-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 phpmyadmin 5.1.2-r0 —
Alpine v3.18 phpmyadmin 5.1.2-r0 —
Alpine v3.17 phpmyadmin 5.1.2-r0 —
Alpine v3.16 phpmyadmin 5.1.2-r0 —
Alpine v3.15 phpmyadmin 5.1.2-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist phpmyadmin/phpmyadmin >= 5.1.0, < 5.1.2 5.1.2 GHSA-vcwc-6mr9-8m7c

Advisories 6

References