Vulnerability Report
Core High Patch path listed CVE-2022-21664

WordPress Core < 5.8.3 - SQL Injection via WP_Meta_Query

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.

Quick Answer

CVE-2022-21664 is a high severity with CVSS 7.4 SQL Injection issue affecting the Core WordPress. It affects 4.1 up to before 4.1.34 and is fixed in 4.1.34.

Published
Jan 06, 2022
Last Updated
Jan 22, 2024
Slug
wordpress
Operational Summary

What the operator needs to know

Patch Status
Patched release is available
Remediation
Update to one of the following versions, or a newer patched version: 4.1.34, 4.2.31, 4.3.27, 4.4.26, 4.5.25, 4.6.22, 4.7.22, 4.8.18, 4.9.19, 5.0.15, 5.1.12, 5.2.14, 5.3.11, 5.4.9, 5.5.8, 5.6.7, 5.7.5, 5.8.3
Operator Briefing

CVE-2022-21664 is tracked for the Core WordPress as high severity with CVSS 7.4. The affected range is 4.1 up to before 4.1.34. Update WordPress to 4.1.34 or newer where that version is compatible with the site.

Issue Type
SQL Injection
Primary Fixed Version
4.1.34
Primary Affected Range
4.1 up to before 4.1.34
Tracking ID
CVE-2022-21664
Detailed Metadata
Software Type Core
Software Slug
wordpress
CVE CVE-2022-21664
Patched Versions
4.1.34 4.2.31 4.3.27 4.4.26 4.5.25 4.6.22 4.7.22 4.8.18 4.9.19 5.0.15 5.1.12 5.2.14 5.3.11 5.4.9 5.5.8 5.6.7 5.7.5 5.8.3
Affected Versions
4.1 up to before 4.1.34 4.2 up to before 4.2.31 4.3 up to before 4.3.27 4.4 up to before 4.4.26 4.5 up to before 4.5.25 4.6 up to before 4.6.22 4.7 up to before 4.7.22 4.8 up to before 4.8.18 4.9 up to before 4.9.19 5.0 up to before 5.0.15 5.1 up to before 5.1.12 5.2 up to before 5.2.14 5.3 up to before 5.3.11 5.4 up to before 5.4.9 5.5 up to before 5.5.8 5.6 up to before 5.6.7 5.7 up to before 5.7.5 5.8 up to before 5.8.3
Licensing Notices

This record contains material that is subject to copyright

DEFIANT
Copyright 2012-2026 Defiant Inc.

License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. Read more

MITRE
Copyright 1999-2026 The MITRE Corporation

License: CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy. Read more