CVE-2022-21661
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.
Published Updated Sources: NVD, WordPress (CNA), GitHub, Exploit-DB, Red Hat (VEX), SOCRadar CTI
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Reported
not confirmed by CISA
EPSS
98%
top of FIRST's scoreset
CVSS base
7.5
high · 3 sources
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
PoC
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Remediation
The vendor's own words where we have them.
Upgrade Wordpress-develop to a fixed release. Apply vendor patches per advisory and restrict external exposure of the affected component until patched.
Red Hat VEX · CVE-2022-21661
First 24 hours
Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.
- Identify exposed assets running affected vendor/product/version combinations.
- Prioritize based on EPSS, PoC availability, and external exposure.
- Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.
Affected scope
Vendor, product and version as the advisories word them.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| WordPress | wordpress-develop | < 5.8.3 | Vulnerable |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Availability
None
Confidentiality
High
Integrity
None
Scope
Unchanged
Attack Complexity
Low
Attack Vector
Network
Privileges Req
None
User Interaction
None
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 8.0 | CVSS 3.1 | high | 1.3 | 6 | GitHub (CNA), WordPress (CNA), Red Hat (VEX) |
| 7.5 | CVSS 3.1 | high | 3.9 | 3.6 | NVD |
| 5.0 | CVSS 2.0 | medium | 10 | 2.9 | NVD |
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
What this weakness leads to
MITRE's own consequences and mitigations for the weakness class — the authority's wording, not guidance derived from the CVSS vector.
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
- Read Application Data
- Bypass Protection Mechanism
- Modify Application Data
Mitigation: Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, consider using persistence layers such as Hibernate or Enterprise Java Beans, which can provide significant protection against SQL injection if used properly.
Weakness & attack patterns
- CWE-89SQL Injection
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
Public exploit
Capability, not use: code existing is a different claim from anyone running it.
PoC repos
46
1 of the 5 sampled are weaponized
Exploit entries
22
Exploit-DB and CTI exploit indexes
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Prioritize edge telemetry for network-reachable Wordpress-develop.
- Monitor for scanner or exploit-pattern traffic after 68 public PoC repositories were reported.
Groups associated with this CVE
Groups reported in connection with this vulnerability. A reported association, not a confirmed observation of that group using it — and not scoped to any sector or campaign.
- hostnameweisvermthal.shop64
Hole Cert · Jul 21, 2026
- hostnamegtradeapp2.com71
Hole Cert · Jul 21, 2026
- ip188.143.232.129
Zonefiles · Aug 26, 2020
- hostname7649xwt.skin67
Hole Cert · May 28, 2026
- hostnamerodriguezhenry.shop62
Hole Cert · May 31, 2026
5 more indicators on this CVEShowing 5 of 10 · Hashes, addresses and domains from a live threat exchangeUnlock freeTimeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Added · CVSS 3.1 7.5 (AV:N)
Jun 17, 2026 · NVD
- 2025
Cve is exploited Fauzan-Aldi/CVE-2022-21661
May 13, 2025 · SOCRadar CTI
- 2024
CVE is exploited. "w0r1i0g1ht/CVE-2022-21661"
Nov 12, 2024 · SOCRadar CTI
CVE is exploited. "NaInSec/CVE-PoC-in-GitHub"
Mar 31, 2024 · SOCRadar CTI
CVE is exploited. "safe3s/CVE-2022-21661"
Mar 31, 2024 · SOCRadar CTI
CVE is exploited. "k0mi-tg/CVE-POC"
Feb 2, 2024 · SOCRadar CTI
- 2023
CVE is exploited. "ARPSyndicate/cvemon"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "ArrestX/--POC"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "KayCHENvip/vulnerability-poc"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "Miraitowa70/POC-Notes"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "Threekiii/Awesome-POC"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "WhooAmii/POC_to_review"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "binganao/vulns-2022"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "manas3c/CVE-POC"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "nomi-sec/PoC-in-GitHub"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "soosmile/POC"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "xinyisleep/pocscan"
Dec 14, 2023 · SOCRadar CTI
CVE is exploited. "sealldeveloper/CVE-2022-21661-PoC"
Apr 27, 2023 · SOCRadar CTI
- 2022
Added · webapps entry: WordPress Core 5.8.2 - 'WP_Query' SQL Injection (SQLi)
Jan 13, 2022 · Exploit-DB
Initial · CVE published
Jan 6, 2022 · NVD
Source activity
Readings a source repeats on a schedule, counted rather than listed.
- 14×Github ReposApr 27, 2023 – Mar 1, 2026 · SOCRadar CTI
- 8×SVRS was changedApr 10, 2023 – Mar 16, 2026 · SOCRadar CTI
- 1×CVE modified by MITRE: CVSS metrics updated.Aug 19, 2025 · SOCRadar CTI
References
15 on the record
- packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html
Exploit, Third Party Advisory, VDB Entry, NIST, GITHUB
- github.com/WordPress/wordpress-develop/commit/17efac8c8ec64555eff5cf51a3eff81e06317214
Patch, Third Party Advisory, NIST, MITRE_REFERENCES
- github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84
Third Party Advisory, NIST, MITRE_REFERENCES
- lists.debian.org/debian-lts-announce/2022/01/msg00019.html
Mailing List, Third Party Advisory, NIST
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CV4UNEC63UU5GEU47IIR4RMTZAHNEOJG/
Third Party Advisory, NIST
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DM6XPH3JN6V4NF4WBOJTOXZIVE6VKKE3/
Third Party Advisory, NIST
- wordpress.org/news/2022/01/wordpress-5-8-3-security-release/
Release Notes, Vendor Advisory, NIST, MITRE_REFERENCES
- www.debian.org/security/2022/dsa-5039
Third Party Advisory, NIST
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-72898 Metabase SQL injection via password reset endpointCVSS 10.0 · CISA KEV
- CVE-2026-114625 Security Advisory 0199CVSS 9.9 · CISA KEV
- CVE-2026-76461 Cisco Secure Email Gateway SQL Injection VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2026-42208 LiteLLM: SQL injection in Proxy API key verificationCVSS 9.8 · CISA KEV
- CVE-2026-21643 Fortinet FortiClient EMS SQL Injection VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2026-9586 Unauthenticated SQL Injection Leading to Remote Code Execution in Switchvox SMBCVSS 9.8 · CISA KEV
Elsewhere on this site
- WordPressevery CVE for this vendor
- wordpress-developevery page on this product
- Injectionsame class
- CWE-89other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- Only the 5 indicator(s) reported for this CVE are available; no packet-level or host-forensic artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1
What should defenders know first?
CVE-2022-21661 is SQL injection in WordPress, a high vulnerability affecting Wordpress-develop from WordPress. The current evidence does not list it in CISA KEV, and the exploit status is: Exploitation is reported, but no independent confirmation is available in the sources we have. Public exploit evidence is: 68 public PoC repositories reported; 1 marked weaponized in current dataset. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 7.5 describes technical severity, while EPSS 98% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.