CVE-2022-21661: SQL injection in WordPress
Vulnerability summary
CVE-2022-21661 is a high (CVSS 8.0) vulnerability in debian debian_linux. EPSS estimates a 97.80% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 3 public exploits are recorded.
Public exploit (exploit-database, 13-01-2022)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2Timeline
- 06-01-2022PublishedVulnerability first disclosed.
- 09-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NDiffers
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NDiffers
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NDiffers
- wordfenceSource8.0HighCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
EPSS trend
Probability
97.80%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
No change 0.00 pp
From 97.80% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
3 foundExploit Reference (packetstormsecurity.com)
Maturity: unknown
Exploit Reference (vicarius.io)
Maturity: unknown
WordPress Core 5.8.2 - 'WP_Query' SQL Injection (SQLi)
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Wordpress3 products
- wordpress≥ 3.7, < 3.7.37 | ≥ 3.8, < 3.8.37 (fixed in 3.7.37) | ≥ 3.9, < 3.9.35 (fixed in 3.7.37) | ≥ 4.0, < 4.0.34 (fixed in 3.7.37) | ≥ 4.1, < 4.1.34 (fixed in 3.7.37) | ≥ 4.2, < 4.2.31 (fixed in 3.7.37) | ≥ 4.3, < 4.3.27 (fixed in 3.7.37) | ≥ 4.4, < 4.4.26 (fixed in 3.7.37) | ≥ 4.5, < 4.5.25 (fixed in 3.7.37) | ≥ 4.6, < 4.6.22 (fixed in 3.7.37) | ≥ 4.7, < 4.7.22 (fixed in 3.7.37) | ≥ 4.8, < 4.8.18 (fixed in 3.7.37) | ≥ 4.9, < 4.9.19 (fixed in 3.7.37) | ≥ 5.0, < 5.0.15 (fixed in 3.7.37) | ≥ 5.1, < 5.1.12 (fixed in 3.7.37) | ≥ 5.2, < 5.2.14 (fixed in 3.7.37) | ≥ 5.3, < 5.3.11 (fixed in 3.7.37) | ≥ 5.4, < 5.4.9 (fixed in 3.7.37) | ≥ 5.5, < 5.5.8 (fixed in 3.7.37) | ≥ 5.6, < 5.6.7 (fixed in 3.7.37) | ≥ 5.7, < 5.7.5 (fixed in 3.7.37) | ≥ 5.8, < 5.8.3 (fixed in 3.7.37)
- wordpress≥ 3.7, < 3.7.37 | ≥ 3.8, < 3.8.37 | ≥ 3.9, < 3.9.35 | ≥ 4.0, < 4.0.34 | ≥ 4.1, < 4.1.34 | ≥ 4.2, < 4.2.31 | ≥ 4.3, < 4.3.27 | ≥ 4.4, < 4.4.26 | ≥ 4.5, < 4.5.25 | ≥ 4.6, < 4.6.22 | ≥ 4.7, < 4.7.22 | ≥ 4.8, < 4.8.18 | ≥ 4.9, < 4.9.19 | ≥ 5.0, < 5.0.15 | ≥ 5.1, < 5.1.12 | ≥ 5.2, < 5.2.14 | ≥ 5.3, < 5.3.11 | ≥ 5.4, < 5.4.9 | ≥ 5.5, < 5.5.8 | ≥ 5.6, < 5.6.7 | ≥ 5.7, < 5.7.5 | ≥ 5.8, < 5.8.3
- wordpress-develop< 5.8.3
Debian2 products
- wordpress< 5.8.3+dfsg1-1
- debian_linuxEOL9.0 | 10.0 | 11.0
Fedoraproject1 product
- fedoraEOL34 | 35
Ubuntu1 product
- wordpressAll versions (No fix recorded)
4 vendors · 7 products
References
16 links- github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84X Refsource CONFIRMREPORTThird Party Advisory
- github.com/WordPress/wordpress-develop/commit/17efac8c8ec64555eff5cf51a3eff81e06317214X Refsource MISCREPORTPatchThird Party Advisory
- wordpress.org/news/2022/01/wordpress-5-8-3-security-release/X Refsource MISCREPORTRelease NotesVendor Advisory
- packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.htmlX Refsource MISCExploitThird Party AdvisoryVDB Entry
- lists.debian.org/debian-lts-announce/2022/01/msg00019.htmlMailing ListX Refsource MLISTThird Party Advisory