CVE-2018-12581 phpMyAdmin XSS Vulnerability

Medium 6.1 Published Updated

An attacker can execute arbitrary scripts in a victim's browser via a crafted database name in the Designer feature of phpMyAdmin.

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-2018-12581?

CVE-2018-12581 is a medium-severity cross-site scripting vulnerability in Phpmyadmin Phpmyadmin, published on 21 Jun 2018. 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 js/designer/move.js in phpMyAdmin before 4.8.2. A Cross-Site Scripting vulnerability has been found where an attacker can use a crafted database name to trigger an XSS attack when that database is referenced from the Designer feature.

Weakness: CWE-79

Which versions are affected by CVE-2018-12581?

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

PackageAffectedFixed in
phpmyadmin/phpmyadmin PackagistAll versions4.8.2
phpmyadmin/phpmyadmin PackagistAll versions4.8.2

Products include Phpmyadmin Phpmyadmin.

How do I fix CVE-2018-12581?

Upgrade phpmyadmin/phpmyadmin to 4.8.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-2018-12581 being exploited?

There is no known exploitation of CVE-2018-12581 in the wild and no public exploit code.

All Phpmyadmin Phpmyadmin vulnerabilities

Sources

Also known as DEBIAN-CVE-2018-12581, GHSA-vxj6-pm6r-23hq, MGASA-2018-0304, UBUNTU-CVE-2018-12581.

Is CVE-2018-12581 in your software?

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

Check your SBOMs for free