CVE-2020-22452 phpmyadmin contains SQL Injection vulnerability
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.
| Package | Affected | Fixed in |
|---|---|---|
phpmyadmin/phpmyadmin Packagist | From 5.0.0 | 5.0.2 |
phpmyadmin/phpmyadmin Packagist | From 5.0.0 | 5.0.2 |
phpmyadmin Bitnami | From 5.0.0 | 5.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.
Other vulnerabilities in Phpmyadmin Phpmyadmin
Sources
Also known as BIT-phpmyadmin-2020-22452, DEBIAN-CVE-2020-22452, GHSA-prcg-mc23-hgjh, UBUNTU-CVE-2020-22452.