---
cve: "CVE-2022-21661"
severity: "HIGH"
cvss: 8.0
epss: "97.8%"
vendor: "WordPress"
kev: false
exploited: false
published: "2022-01-06 23:15:07"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-03T08:01:43+02:00"
---

# CVE-2022-21661

> 8.0 HIGH · 🧪 PoC

## Beschreibung

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-Vektor

```
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Hoch | good |
| PR Privilegien | Hoch | good |
| UI Interaktion | Keine | bad |
| S Scope | Verändert | bad |
| C Vertraulichkeit | Hoch | bad |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Hoch | bad |

## Exploit-Evidenz

- [EDB-50663 — WordPress Core 5.8.2 - 'WP_Query' SQL Injection](https://www.exploit-db.com/exploits/50663)

## Patch verfügbar (OSV)

- 09d6b97e496414dc67d5615f5ef9d134d566c720 (Commit)
- 27d0fd27462ca1a5fc23bb1016f0c9dcf886020a (Commit)

## Referenzen

- <https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84>
- <https://github.com/WordPress/wordpress-develop/commit/17efac8c8ec64555eff5cf51a3eff81e06317214>
- <https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/>
- <https://www.zerodayinitiative.com/advisories/ZDI-22-020/>
- <https://www.debian.org/security/2022/dsa-5039>
- <https://www.exploit-db.com/exploits/50663>
- <http://packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DM6XPH3JN6V4NF4WBOJTOXZIVE6VKKE3/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CV4UNEC63UU5GEU47IIR4RMTZAHNEOJG/>
- <https://lists.debian.org/debian-lts-announce/2022/01/msg00019.html>
- <https://www.vicarius.io/vsociety/posts/understanding-the-wordpress-sql-injection-vulnerability-cve-2022-21661>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2022-21661) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
