# CVE-2022-21661: SQL injection in WordPress

- Severity: High 8.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 97.8%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2022-01-06T22:50:11.000Z
- Modified: 2026-09-08T08:48:22.362Z
- Also known as: BIT-WORDPRESS-2022-21661, BIT-WORDPRESS-MULTISITE-2022-21661, GHSA-6676-cqfm-gw84
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- WordPress wordpress-develop: < 5.8.3
- wordpress wordpress: from 3.7 before 3.7.37; from 3.8 before 3.8.37; from 3.9 before 3.9.35; from 4.0 before 4.0.34; from 4.1 before 4.1.34; from 4.2 before 4.2.31; from 4.3 before 4.3.27; from 4.4 before 4.4.26; from 4.5 before 4.5.25; from 4.6 before 4.6.22; from 4.7 before 4.7.22; from 4.8 before 4.8.18; and 10 more
- fedoraproject fedora: 34; 35
- debian debian_linux: 9.0; 10.0; 11.0
- wordpress (Bitnami): from 3.7.0 before 3.7.37; from 3.8.0 before 3.8.37; from 3.9.0 before 3.9.35; from 4.0.0 before 4.0.34; from 4.1.0 before 4.1.34; from 4.2.0 before 4.2.31; from 4.3.0 before 4.3.27; from 4.4.0 before 4.4.26; from 4.5.0 before 4.5.25; from 4.6.0 before 4.6.22; from 4.7.0 before 4.7.22; from 4.8.0 before 4.8.18; and 10 more
- wordpress-multisite (Bitnami): from 3.7.0 before 3.7.37; from 3.8.0 before 3.8.37; from 3.9.0 before 3.9.35; from 4.0.0 before 4.0.34; from 4.1.0 before 4.1.34; from 4.2.0 before 4.2.31; from 4.3.0 before 4.3.27; from 4.4.0 before 4.4.26; from 4.5.0 before 4.5.25; from 4.6.0 before 4.6.22; from 4.7.0 before 4.7.22; from 4.8.0 before 4.8.18; and 10 more

## Every score

- GitHub_M: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://www.exploit-db.com/exploits/50663> (exploit, advisory, third-party-advisory, vdb-entry)
- <http://packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html> (exploit, advisory, third-party-advisory, vdb-entry)
- <https://www.vicarius.io/vsociety/posts/understanding-the-wordpress-sql-injection-vulnerability-cve-2022-21661> (exploit, advisory, third-party-advisory)
- <https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84> (advisory, third-party-advisory)
- <https://github.com/WordPress/wordpress-develop/commit/17efac8c8ec64555eff5cf51a3eff81e06317214> (advisory, patch, third-party-advisory)
- <https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/> (advisory, release-notes, vendor-advisory)
- <https://www.zerodayinitiative.com/advisories/ZDI-22-020/> (advisory, third-party-advisory, vdb-entry)
- <https://www.debian.org/security/2022/dsa-5039> (advisory, third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DM6XPH3JN6V4NF4WBOJTOXZIVE6VKKE3/> (advisory, third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CV4UNEC63UU5GEU47IIR4RMTZAHNEOJG/> (advisory, third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/01/msg00019.html> (advisory, mailing-list, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21661> (web)

## Sources

- CVE List: [CVE-2022-21661](https://www.cve.org/CVERecord?id=CVE-2022-21661), CVE Terms of Use, modified 2024-09-09
- NVD: [CVE-2022-21661](https://nvd.nist.gov/vuln/detail/CVE-2022-21661), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-WORDPRESS-2022-21661](https://osv.dev/vulnerability/BIT-WORDPRESS-2022-21661), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-WORDPRESS-MULTISITE-2022-21661](https://osv.dev/vulnerability/BIT-WORDPRESS-MULTISITE-2022-21661), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-21661 · Whole record: https://cve.day/CVE-2022-21661.json · Rebuilt by cve.day 2026-11-25T22:58:09.146Z
