CVE-2019-6798 phpMyAdmin SQL injection in Designer feature

Critical 9.8 Published Updated

Attackers can execute arbitrary SQL commands via a crafted username in the designer feature, potentially accessing or modifying database contents.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-6798?

CVE-2019-6798 is a critical SQL injection vulnerability in Phpmyadmin Phpmyadmin, published on 26 Jan 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in phpMyAdmin before 4.8.5. A vulnerability was reported where a specially crafted username can be used to trigger a SQL injection attack through the designer feature.

Weakness: CWE-89

Which versions are affected by CVE-2019-6798?

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

PackageAffectedFixed in
phpmyadmin/phpmyadmin PackagistAll versions4.8.5
phpmyadmin/phpmyadmin PackagistAll versions4.8.5

Products include Phpmyadmin Phpmyadmin.

How do I fix CVE-2019-6798?

Upgrade phpmyadmin/phpmyadmin to 4.8.5 or later.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2019-6798 being exploited?

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

All Phpmyadmin Phpmyadmin vulnerabilities

Sources

Also known as DEBIAN-CVE-2019-6798, GHSA-f732-fxh6-g4qj, UBUNTU-CVE-2019-6798.

Is CVE-2019-6798 in your software?

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

Check your SBOMs for free