CVE-2022-21661
mediumpriority · attend · 74EPSS 0.978 · 100 %ileexploit · PoCEURUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (13)
Public proof-of-concept and weaponised exploit code.
- EDB-50663WordPress Core 5.8.2 - 'WP_Query' SQL InjectionPoC · exploit_db
- CharonDefalt/WordPress--CVE-2022-21661CharonDefalt/WordPress--CVE-2022-21661PoC · poc_in_github
affected products (78)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- BIT-wordpress-2022-21661SQL injection in WordPress2024-03-06vendor · osvUS
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.
- BIT-wordpress-multisite-2022-21661SQL injection in WordPress2024-03-06vendor · osvUS
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.
also known as (9)
Other names and identifiers for this entity.
- CNNVD-202201-456cnnvd
- EUVD-2022-26878enisa_euvd
- BDU:2023-07191fstec_bdu
- EDB-ID50663fstec_bdu
- ZDI-22-020fstec_bdu
- ZDI-CAN-15541fstec_bdu
- BIT-wordpress-2022-21661osv
- BIT-wordpress-multisite-2022-21661osv
- GHSA-6676-cqfm-gw84osv
sources
Which sources assert this record, and when.
references (38)
External citations — patches, advisories, analysis.
- https://github.com/WordPress/wordpress-develop/commit/17efac8c8ec64555eff5cf51a3eff81e06317214cnnvd
- https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84cnnvd
- https://lists.debian.org/debian-lts-announce/2022/01/msg00019.htmlcnnvd
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CV4UNEC63UU5GEU47IIR4RMTZAHNEOJG/cnnvd
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DM6XPH3JN6V4NF4WBOJTOXZIVE6VKKE3/cnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CV4UNEC63UU5GEU47IIR4RMTZAHNEOJG/cnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DM6XPH3JN6V4NF4WBOJTOXZIVE6VKKE3/cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2022-21661cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan