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
EPSS: 0.978 (99.9th percentile) — read the EPSS interpretation.
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.
Affected products
- Wordpress
- Wordpress Wordpress-develop — versions < 5.8.3
- Debian 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
- security-advisories@github.com (x_refsource_CONFIRM, Third Party Advisory)
- security-advisories@github.com (Patch, Third Party Advisory, x_refsource_MISC)
- security-advisories@github.com (x_refsource_MISC, Release Notes, Vendor Advisory)
- security-advisories@github.com (VDB Entry, Third Party Advisory, x_refsource_MISC)
- security-advisories@github.com (vendor-advisory, Third Party Advisory, x_refsource_DEBIAN)
- security-advisories@github.com (Exploit, VDB Entry, Third Party Advisory, x_refsource_MISC)
- security-advisories@github.com (Exploit, VDB Entry, Third Party Advisory, x_refsource_MISC)
- security-advisories@github.com (x_refsource_FEDORA, vendor-advisory, Third Party Advisory)
- security-advisories@github.com (x_refsource_FEDORA, vendor-advisory, Third Party Advisory)
- security-advisories@github.com (mailing-list, x_refsource_MLIST, 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.