CVE-2022-21664
published high CVSS 3.1 · 7.4SQL injection in WordPress
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| WordPress | — | wordpress-develop>= 4.1.33, < 5.8.3 | Affected | Not stated | GitHub_M |
| Debian | bullseye | wordpress | Advisory build | 5.7.5+dfsg1-0+deb11u1 | DSA-5039-1 |
| Debian | buster | wordpress | Advisory build | 5.0.15+dfsg1-0+deb10u1 | DSA-5039-1 |
| Debian | stretch | wordpress | Advisory build | 4.7.22+dfsg-0+deb9u1 | DLA-2884-1 |
Description
WordPress is a free and open-source content management system written in PHP and paired with a MariaDB database. Due to lack of proper sanitization in one of the classes, there's potential for unintended SQL queries to be executed. This has been patched in WordPress version 5.8.3. Older affected versions are also fixed via security release, that go back till 4.1.34. We strongly recommend that you keep auto-updates enabled. There are no known workarounds for this issue.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.4 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| WordPress | wordpress-develop | >= 4.1.33, < 5.8.3 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-89 CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
7- https://github.com/WordPress/wordpress-develop/commit/c09ccfbc547d75b392dbccc1ef0b4442ccd3c957
- https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-jp3p-gw8h-6x86
- [debian-lts-announce] 20220123 [SECURITY] [DLA 2884-1] wordpress security update https://lists.debian.org/debian-lts-announce/2022/01/msg00019.html
- FEDORA-2022-e37e1e6c7a https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CV4UNEC63UU5GEU47IIR4RMTZAHNEOJG/
- FEDORA-2022-8472dd59ff https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DM6XPH3JN6V4NF4WBOJTOXZIVE6VKKE3/
- https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/
- DSA-5039 https://www.debian.org/security/2022/dsa-5039
Provider assertions
3GitHub_M · cna
SQL injection in WordPress
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2c424499d87ea9f87ddd6267583f441ba2650607b8b01f78856873bc78ef7241
- Ingested
- 23 Sep 2026, 07:58:18 UTC
- Source record
- Official CVE record