CVE-2022-21664
SQL injection in WordPress
- Published
- Updated
- Reserved
- 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 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.
Timeline
ID reserved
By GitHub_M
- 51 days later
· 51 days later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L |
| NVDNVD · Modified | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 3.7% · top 10% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.4.
Weakness
Affected products
- affected >= 4.1.33, < 5.8.3
References (7)
- https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/ (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-jp3p-gw8h-6x86 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/WordPress/wordpress-develop/commit/c09ccfbc547d75b392dbccc1ef0b4442ccd3c957 (opens in a new tab)x_refsource_MISCx_transferred
- DSA-5039 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- FEDORA-2022-8472dd59ff (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2022-e37e1e6c7a (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- [debian-lts-announce] 20220123 [SECURITY] [DLA 2884-1] wordpress security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-21664)Record last updated .