CVE-2022-21664 SQL injection in WordPress
Attackers can execute unintended SQL queries due to lack of sanitization, potentially reading or modifying database content.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-21664?
CVE-2022-21664 is a high-severity SQL injection vulnerability in Debian Debian Linux, published on 6 Jan 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
WordPress is a free and open-source content management system written in PHP and paired with a MariaDB database. Due to lack of proper sanitization in one of the classes, there's potential for unintended SQL queries to be executed. This has been patched in WordPress version 5.8.3. Older affected versions are also fixed via security release, that go back till 4.1.34. We strongly recommend that you keep auto-updates enabled. There are no known workarounds for this issue.
Weakness: CWE-89
Which versions are affected by CVE-2022-21664?
2 open source packages ship an affected version, including wordpress and wordpress-multisite. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
wordpress Bitnami | All versions | 5.8.3 |
wordpress-multisite Bitnami | All versions | 5.8.3 |
Products include Debian Debian Linux, Fedoraproject Fedora, Wordpress Wordpress.
How do I fix CVE-2022-21664?
Upgrade wordpress to 5.8.3 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-2022-21664 being exploited?
There is no known exploitation of CVE-2022-21664 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as BIT-wordpress-2022-21664, BIT-wordpress-multisite-2022-21664, DEBIAN-CVE-2022-21664, GHSA-jp3p-gw8h-6x86, UBUNTU-CVE-2022-21664.