CVEvulnerability
CVE-2022-21661
7.5 HIGH
Official page ↗
- Status
- Analyzed
- Published
- 2022-01-06
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 8.0 HIGH — CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
- CVSS 3.1 ([email protected])
- 7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS 2.0 ([email protected])
- 5.0 MEDIUM — AV:N/AC:L/Au:N/C:P/I:N/A:N
- Weaknesses
- CWE-89
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.
Affected configurations
• wordpress wordpress (>= 3.7 < 3.7.37)
• wordpress wordpress (>= 3.8 < 3.8.37)
• wordpress wordpress (>= 3.9 < 3.9.35)
• wordpress wordpress (>= 4.0 < 4.0.34)
• wordpress wordpress (>= 4.1 < 4.1.34)
• wordpress wordpress (>= 4.2 < 4.2.31)
• wordpress wordpress (>= 4.3 < 4.3.27)
• wordpress wordpress (>= 4.4 < 4.4.26)
• wordpress wordpress (>= 4.5 < 4.5.25)
• wordpress wordpress (>= 4.6 < 4.6.22)
• wordpress wordpress (>= 4.7 < 4.7.22)
• wordpress wordpress (>= 4.8 < 4.8.18)
• wordpress wordpress (>= 4.9 < 4.9.19)
• wordpress wordpress (>= 5.0 < 5.0.15)
• wordpress wordpress (>= 5.1 < 5.1.12)
• wordpress wordpress (>= 5.2 < 5.2.14)
• wordpress wordpress (>= 5.3 < 5.3.11)
• wordpress wordpress (>= 5.4 < 5.4.9)
• wordpress wordpress (>= 5.5 < 5.5.8)
• wordpress wordpress (>= 5.6 < 5.6.7)
• wordpress wordpress (>= 5.7 < 5.7.5)
• wordpress wordpress (>= 5.8 < 5.8.3)
• fedoraproject fedora 34
• fedoraproject fedora 35
• debian debian linux 9.0
• debian debian linux 10.0
• debian debian linux 11.0
Related
Weakness · CWE (1)
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness
References
- http://packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html Exploit, Third Party Advisory, VDB Entry
- https://github.com/WordPress/wordpress-develop/commit/17efac8c8ec64555eff5cf51a3eff81e06317214 Patch, Third Party Advisory
- https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84 Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/01/msg00019.html Mailing List, Third Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CV4UNEC63UU5GEU47IIR4RMTZAHNEOJG/ Third Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DM6XPH3JN6V4NF4WBOJTOXZIVE6VKKE3/ Third Party Advisory
- https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/ Release Notes, Vendor Advisory
- https://www.debian.org/security/2022/dsa-5039 Third Party Advisory
- https://www.exploit-db.com/exploits/50663 Exploit, Third Party Advisory, VDB Entry
- https://www.zerodayinitiative.com/advisories/ZDI-22-020/ Third Party Advisory, VDB Entry
- http://packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html Exploit, Third Party Advisory, VDB Entry
- https://github.com/WordPress/wordpress-develop/commit/17efac8c8ec64555eff5cf51a3eff81e06317214 Patch, Third Party Advisory
- https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84 Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2022/01/msg00019.html Mailing List, Third Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CV4UNEC63UU5GEU47IIR4RMTZAHNEOJG/ Third Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DM6XPH3JN6V4NF4WBOJTOXZIVE6VKKE3/ Third Party Advisory
- https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/ Release Notes, Vendor Advisory
- https://www.debian.org/security/2022/dsa-5039 Third Party Advisory
- https://www.exploit-db.com/exploits/50663 Exploit, Third Party Advisory, VDB Entry
- https://www.vicarius.io/vsociety/posts/understanding-the-wordpress-sql-injection-vulnerability-cve-2022-21661 Exploit, Third Party Advisory
- https://www.zerodayinitiative.com/advisories/ZDI-22-020/ Third Party Advisory, VDB Entry