Home / WordPress / wordpress-develop / CVE-2022-21661
CVE-2022-21661: is it exploited, and which versions of wordpress-develop are affected and fixed?
CVE-2022-21661 is a SQL injection vulnerability in wordpress-develop. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:09 UTC). Affected: wordpress-develop < 5.8.3 (CVE record by GitHub_M). Fixed in 3.7.37, 3.8.37, 3.9.35, 4.0.34 and 2 more (NVD). Severity: High (8.0, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:09 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:52 UTC.
What is CVE-2022-21661?
SQL injection in WordPress
WordPress is a free and open-source content management system written in PHP and paired with a MariaDB database. Due to improper sanitization in WP_Query, there can be cases where SQL injection is possible through plugins or themes that use it in a certain way. This has been patched in WordPress version 5.8.3. Older affected versions are also fixed via security release, that go back till 3.7.37. We strongly recommend that you keep auto-updates enabled. There are no known workarounds for this vulnerability.
From the CVE record by GitHub_M, last updated September 9, 2024, 14:13 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| WordPress | wordpress-develop | < 5.8.3 |
As the CVE record by GitHub_M states it, last updated September 9, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| wordpress | wordpress | from 3.7 before 3.7.37 | application |
| wordpress | wordpress | from 3.8 before 3.8.37 | application |
| wordpress | wordpress | from 3.9 before 3.9.35 | application |
| wordpress | wordpress | from 4.0 before 4.0.34 | application |
| wordpress | wordpress | from 4.1 before 4.1.34 | application |
| wordpress | wordpress | from 4.2 before 4.2.31 | application |
| wordpress | wordpress | from 4.3 before 4.3.27 | application |
| wordpress | wordpress | from 4.4 before 4.4.26 | application |
| wordpress | wordpress | from 4.5 before 4.5.25 | application |
| wordpress | wordpress | from 4.6 before 4.6.22 | application |
| wordpress | wordpress | from 4.7 before 4.7.22 | application |
| wordpress | wordpress | from 4.8 before 4.8.18 | application |
| wordpress | wordpress | from 4.9 before 4.9.19 | application |
| wordpress | wordpress | from 5.0 before 5.0.15 | application |
| wordpress | wordpress | from 5.1 before 5.1.12 | application |
| wordpress | wordpress | from 5.2 before 5.2.14 | application |
| wordpress | wordpress | from 5.3 before 5.3.11 | application |
| wordpress | wordpress | from 5.4 before 5.4.9 | application |
| wordpress | wordpress | from 5.5 before 5.5.8 | application |
| wordpress | wordpress | from 5.6 before 5.6.7 | application |
| wordpress | wordpress | from 5.7 before 5.7.5 | application |
| wordpress | wordpress | from 5.8 before 5.8.3 | application |
| fedoraproject | fedora | 34 | operating system |
| fedoraproject | fedora | 35 | operating system |
| debian | debian linux | 9.0 | operating system |
NVD analysis (status Analyzed), last modified June 17, 2026, 04:26 UTC.
How severe is CVE-2022-21661?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.0 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H | GitHub_M |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | NVD |
| Medium 5.0 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-21661 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, September 9, 2024)
- EPSS
- 97.8% probability of exploitation activity in the next 30 days, percentile 99.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Where are the vendor advisories and references?
- https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84 x_refsource_CONFIRM
- https://github.com/WordPress/wordpress-develop/commit/17efac8c8ec64555eff5cf51a3eff81e06317214 x_refsource_MISC
- https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/ x_refsource_MISC
- https://www.zerodayinitiative.com/advisories/ZDI-22-020/ x_refsource_MISC
- DSA-5039 vendor-advisory, x_refsource_DEBIAN
- https://www.exploit-db.com/exploits/50663 x_refsource_MISC
- http://packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html x_refsource_MISC
- FEDORA-2022-8472dd59ff vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-e37e1e6c7a vendor-advisory, x_refsource_FEDORA
- [debian-lts-announce] 20220123 [SECURITY] [DLA 2884-1] wordpress security update mailing-list, x_refsource_MLIST
- https://www.vicarius.io/vsociety/posts/understanding-the-wordpress-sql-injection-vulnerability-cve-2022-21661
When was it published, and where is the official record?
- Reserved
- November 16, 2021
- Published
- January 6, 2022, 22:50 UTC
- CVE record updated
- September 9, 2024, 14:13 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 04:26 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:52 UTC; KEV December 3, 2026, 16:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect wordpress-develop?
- Apr 4, 2024CVE-2024-31211 wordpress-develop: deserialization of untrusted data
- Apr 4, 2024CVE-2024-31210 wordpress-develop: unrestricted file upload
- Jan 6, 2022CVE-2022-21662 wordpress-develop: cross-site scripting (XSS)
- Jan 6, 2022CVE-2022-21663 wordpress-develop: injection
- Jan 6, 2022CVE-2022-21664 wordpress-develop: SQL injection
- Sep 9, 2021CVE-2021-39203 wordpress-develop: information disclosure
- Sep 9, 2021CVE-2021-39202 wordpress-develop: cross-site scripting (XSS)
- Sep 9, 2021CVE-2021-39201 wordpress-develop: cross-site scripting (XSS)
Every CVE in wordpress-develop
Questions about CVE-2022-21661
Is CVE-2022-21661 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:09 UTC. FIRST's EPSS gives it a 97.8% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of wordpress-develop are affected by CVE-2022-21661?
wordpress-develop < 5.8.3, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2022-21661?
3.7.37, 3.8.37, 3.9.35, 4.0.34, 4.1.34 and 4.2.31, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-21661?
High (8.0, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2022-21661?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.