SQL Injection in WordPress
CVE-2022-21661
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.0 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.978 (99.9th percentile), scored .
Very high probability of exploitation in the next 30 days — among the top 0.1% most-likely-to-be-exploited CVEs. 100th percentile — 99.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.978 · newest: 0.978 · change: 0.000
Affected products
- WordPress
- WordPress Wordpress-Develop — versions < 5.8.3
- Debian Linux — versions 9.0, 10.0, 11.0
- Fedoraproject Fedora — versions 34, 35
Weakness classification (CWE)
Public proof-of-concept exploits
- z92g/CVE-2022-21661
- purple-WL/wordpress-CVE-2022-21661
- 0x4E0x650x6F/Wordpress-cve-CVE-2022-21661
- guestzz/CVE-2022-21661
- WellingtonEspindula/SSI-CVE-2022-21661
- sealldeveloper/CVE-2022-21661-PoC
- daniel616/CVE-2022-21661-Demo
- 7rootsec/CVE-2022-21661-Technical-Analysis
- Fauzan-Aldi/CVE-2022-21661
- w0r1i0g1ht/CVE-2022-21661
References
- github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84 (Third Party Advisory)
- github.com/WordPress/wordpress-develop/commit/17efac8c8ec64555eff5cf51a3eff81e0… (Patch, Third Party Advisory)
- wordpress.org/news/2022/01/wordpress-5-8-3-security-release/ (Release Notes, Vendor Advisory)
- www.zerodayinitiative.com/advisories/ZDI-22-020/ (VDB Entry, Third Party Advisory)
- www.debian.org/security/2022/dsa-5039 (vendor-advisory, Third Party Advisory)
- www.exploit-db.com/exploits/50663 (Exploit, VDB Entry, Third Party Advisory)
- packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html (Exploit, VDB Entry, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (vendor-advisory, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2022/01/msg00019.html (mailing-list, Mailing List, Third Party Advisory)
Frequently asked questions
- What is CVE-2022-21661?
- CVE-2022-21661 is a high-severity vulnerability in WordPress, classified under SQL Injection. CVSS score: 8.0/10. Published 2022-01-06.
- How severe is CVE-2022-21661?
- High severity. CVSS v3 base score is 8.0 out of 10.
- Is CVE-2022-21661 known to be exploited?
- 54 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.