Vulnerability · Published Jan 6, 2022 · Assigned by GitHub_M
CVE-2022-21661SQL injection in WordPress
High 8.0
In plain English
A high-severity SQL injection in wordpress-develop from WordPress. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 97.8% (higher than 99.9% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | wordpress | 5.8.3+dfsg1-1 | DEBIAN-CVE-2022-21661 |
| Debian:13 | wordpress | 5.8.3+dfsg1-1 | DEBIAN-CVE-2022-21661 |
| Debian:14 | wordpress | 5.8.3+dfsg1-1 | DEBIAN-CVE-2022-21661 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| WordPress | wordpress-develop | < 5.8.3 |
Weakness: CWE-89 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84 x_refsource_CONFIRM
- https://github.com/WordPress/wordpress-develop/commit/17efac8c8ec64555eff5cf51a3eff81e06317214 x_refsource_MISC
- https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/ x_refsource_MISC
- https://www.zerodayinitiative.com/advisories/ZDI-22-020/ x_refsource_MISC
- DSA-5039 vendor-advisory, x_refsource_DEBIAN
- https://www.exploit-db.com/exploits/50663 x_refsource_MISC
- http://packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html x_refsource_MISC
- FEDORA-2022-8472dd59ff vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-e37e1e6c7a vendor-advisory, x_refsource_FEDORA
- [debian-lts-announce] 20220123 [SECURITY] [DLA 2884-1] wordpress security update mailing-list, x_refsource_MLIST
- https://www.vicarius.io/vsociety/posts/understanding-the-wordpress-sql-injection-vulnerability-cve-2022-21661