CVE-2022-21661
Exploitation reported by one source. First attested on 2023-11-15 by GCVE · shadowserver.
- Published2022-01-06
- Fixed in5.8.3 · 5.7.5 · 5.6.7 · 5.5.8 · 5.4.9 · 5.3.11
- WeaknessCWE-89
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2022-01-0623:15CVE publishedNVD
- 2022-01-13Exploit-DB entryExploit-DB
- 2023-11-1523:17Listed as exploited by GCVEGCVE
- 2023-11-1523:17Exploitation first reportedGCVE
Observed activity
isMalicious corpus · updated 2026-11-03 21:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2022-21661?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2022-21661?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.8 | ≥ 5.8, < 5.8.3 | 5.8.3 | NVD |
| 5.8 | ≥ 5.8.0, < 5.8.3 | 5.8.3 | OSV |
| 5.7 | ≥ 5.7, < 5.7.5 | 5.7.5 | NVD |
| 5.7 | ≥ 5.7.0, < 5.7.5 | 5.7.5 | OSV |
| 5.6 | ≥ 5.6, < 5.6.7 | 5.6.7 | NVD |
| 5.6 | ≥ 5.6.0, < 5.6.7 | 5.6.7 | OSV |
| 5.5 | ≥ 5.5, < 5.5.8 | 5.5.8 | NVD |
| 5.5 | ≥ 5.5.0, < 5.5.8 | 5.5.8 | OSV |
| 5.4 | ≥ 5.4, < 5.4.9 | 5.4.9 | NVD |
| 5.4 | ≥ 5.4.0, < 5.4.9 | 5.4.9 | OSV |
| 5.3 | ≥ 5.3, < 5.3.11 | 5.3.11 | NVD |
| 5.3 | ≥ 5.3.0, < 5.3.11 | 5.3.11 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 9.0 | = 9.0 | no fix published | NVD |
| 10.0 | = 10.0 | no fix published | NVD |
| 11.0 | = 11.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 34.x | = 34 | no fix published | NVD |
| 35.x | = 35 | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- wordpress-developAffected
- = < 5.8.3no fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2022-01-23
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- wordpressUbuntu:20.04:LTSall versions · no fixed version listed
- wordpressUbuntu:18.04:LTSall versions · no fixed version listed
- wordpressUbuntu:16.04:LTSall versions · no fixed version listed
- wordpressDebian:14all versions · fixed in 5.8.3+dfsg1-1
- wordpressDebian:13all versions · fixed in 5.8.3+dfsg1-1
- wordpressDebian:12all versions · fixed in 5.8.3+dfsg1-1
- wordpressDebian:11all versions · fixed in 5.7.5+dfsg1-0+deb11u1
- wordpressDebian:10all versions · fixed in 5.0.15+dfsg1-0+deb10u1
1 more package range on OSV.dev
Vendor advisories
- CVE-2022-21661 Red Hat Product Security
wordpress: SQL injection via WP_Query
Fix
- Update WordPress to 5.8.3 · 5.7.5 · 5.6.7 · 5.5.8 · 5.4.9 · 5.3.11
Advisories and patches
- github.comPatch
- wordpress.orgRelease Notes · Vendor Advisory
Detection
read 2026-11-03 22:42 UTC- Nuclei template
- available ProjectDiscovery
- Proof-of-concept repositories
- 13 repositories, unverifiedpurple-WL/wordpress-CVE-2022-216610x4E0x650x6F/Wordpress-cve-CVE-2022-21661z92g/CVE-2022-21661guestzz/CVE-2022-21661safe3s/CVE-2022-21661 PoC-in-GitHub
- Metasploit modules
- none listed Metasploit Framework
Sources
- GCVEexploitation2023-11-15
- CISA-ADPSSVC decisionpoc2024-09-09
- OpenCVESSVC decisionpoc—
- CNACVSS 3.18known since 2026-10-23
- NVDCVSS 3.17.5read 2026-10-23
- NVDCVSS 2.05read 2026-10-23
- CNAweakness (CWE)CWE-89known since 2026-10-23
- NVDweakness (CWE)CWE-89read 2026-10-23
- FIRST EPSSEPSS score97.8 %read 2026-11-03
- PoC-in-GitHubproof of concept13read 2026-11-03
- Exploit-DBdetectionread 2026-11-03
- ProjectDiscoverydetectionread 2026-11-03
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- BIT-wordpress-2022-21661same flawBitnami · Apache-2.0
- BIT-wordpress-multisite-2022-21661same flawBitnami · Apache-2.0
- EUVD-2022-26878same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-6676-cqfm-gw84same flawGitHub Advisory Database · CC-BY-4.0
- DLA-2884-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5039-1advisory covering several CVEsDebian · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Published
- 2022-01-06
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-6676-cqfm-gw84
Frequently asked questions
What is CVE-2022-21661?
Is CVE-2022-21661 actively exploited?
What is the CVSS score for CVE-2022-21661?
Running WordPress? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GCVE · GCVE dump terms (preserve source attribution)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-6676-cqfm-gw84
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0