CVE-2020-22452 phpmyadmin contains SQL Injection vulnerability

Critical 9.8 Published Updated

An attacker can execute arbitrary SQL commands via crafted parameters in phpMyAdmin, potentially reading 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-2020-22452?

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

Official description

SQL Injection vulnerability in function getTableCreationQuery in CreateAddField.php in phpMyAdmin 5.x before 5.2.0 via the tbl_storage_engine or tbl_collation parameters to tbl_create.php.

Weakness: CWE-89

Which versions are affected by CVE-2020-22452?

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

PackageAffectedFixed in
phpmyadmin/phpmyadmin PackagistFrom 5.0.05.0.2
phpmyadmin/phpmyadmin PackagistFrom 5.0.05.0.2
phpmyadmin BitnamiFrom 5.0.05.2.0

Products include Phpmyadmin Phpmyadmin.

How do I fix CVE-2020-22452?

Upgrade phpmyadmin/phpmyadmin to 5.0.2 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-2020-22452 being exploited?

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

All Phpmyadmin Phpmyadmin vulnerabilities

Sources

Also known as BIT-phpmyadmin-2020-22452, DEBIAN-CVE-2020-22452, GHSA-prcg-mc23-hgjh, UBUNTU-CVE-2020-22452.

Is CVE-2020-22452 in your software?

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

Check your SBOMs for free