CVE-2022-21664: SQL injection in WordPress

Published Jan 6, 2022
·
Updated

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.

Affected Software

10 affected componentsFixes available
WordPress WordPress<5.8.3
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
Fedoraproject Fedora=34
Fedoraproject Fedora=35
debian/wordpress<5.8.3+dfsg1-1
5.8.3+dfsg1-1
debian/wordpress<5.8.3+dfsg1-1
5.8.3+dfsg1-1
debian/wordpress<5.8.3+dfsg1-1
5.8.3+dfsg1-1
debian/wordpress
6.1.9+dfsg1-0+deb12u16.8.7+dfsg1-0+deb13u16.8.12+dfsg1-0+deb13u17.1.4+dfsg1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/wordpress to a version that resolves this vulnerability.

    Fixed in 6.1.9+dfsg1-0+deb12u1Fixed in 6.8.7+dfsg1-0+deb13u1Fixed in 6.8.12+dfsg1-0+deb13u1Fixed in 7.1.4+dfsg1-1
  2. Upgrade

    Upgrade debian/wordpress to a version that resolves this vulnerability.

    Fixed in 5.8.3+dfsg1-1
  3. Upgrade

    Upgrade WordPress to a version that resolves this vulnerability.

    Fixed in 5.8.3
  4. Configuration

    Keep WordPress auto-updates enabled.

    WordPress auto-updates = enabled

Event History

Jan 6, 2022
CVE Published
via MITRE·10:55 PM
Data Sourced
via MITRE·10:55 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·11:15 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-21664?

CVE-2022-21664 is a vulnerability in WordPress that allows for unintended SQL queries to be executed due to a lack of proper sanitization in one of the classes.

2

What is the severity of CVE-2022-21664?

The severity of CVE-2022-21664 is high with a CVSS score of 8.8.

3

Which versions of WordPress are affected by CVE-2022-21664?

WordPress versions 5.0.15+dfsg1-0+deb10u1, 5.0.19+dfsg1-0+deb10u1, 5.7.8+dfsg1-0+deb11u2, 6.1.1+dfsg1-1, and 6.3.1+dfsg1-1 are affected by CVE-2022-21664.

4

How can I fix CVE-2022-21664?

To fix CVE-2022-21664, you should update WordPress to version 5.8.3 or newer.

5

Where can I find more information about CVE-2022-21664?

You can find more information about CVE-2022-21664 at the following references: [Link 1](https://github.com/WordPress/wordpress-develop/commit/c09ccfbc547d75b392dbccc1ef0b4442ccd3c957), [Link 2](https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-jp3p-gw8h-6x86), [Link 3](https://lists.debian.org/debian-lts-announce/2022/01/msg00019.html).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203