CVE-2022-23808 Cross-site Scripting in phpmyadmin

Medium 6.1 Published Updated

Attackers can inject malicious code into the phpMyAdmin setup script, enabling XSS or HTML injection attacks against administrators.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-23808?

CVE-2022-23808 is a medium-severity cross-site scripting vulnerability in Phpmyadmin Phpmyadmin, published on 22 Jan 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Weakness: CWE-79

Which versions are affected by CVE-2022-23808?

3 open source packages ship an affected version, including phpmyadmin/phpmyadmin and phpmyadmin. It affects 1 product.

PackageAffectedFixed in
phpmyadmin/phpmyadmin PackagistFrom 5.1.05.1.2
phpmyadmin/phpmyadmin PackagistFrom 5.1.05.1.2
phpmyadmin BitnamiFrom 5.1.05.1.2

Products include Phpmyadmin Phpmyadmin.

How do I fix CVE-2022-23808?

Upgrade phpmyadmin/phpmyadmin to 5.1.2 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2022-23808 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-23808 exists.

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

All Phpmyadmin Phpmyadmin vulnerabilities

Sources

Also known as BIT-phpmyadmin-2022-23808, DEBIAN-CVE-2022-23808, GHSA-vcwc-6mr9-8m7c, UBUNTU-CVE-2022-23808.

Is CVE-2022-23808 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free