Name | CVE-2022-21661 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2884-1, DSA-5039-1 |
Debian Bugs | 1003243 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
wordpress (PTS) | bullseye (security), bullseye | 5.7.11+dfsg1-0+deb11u1 | fixed |
bookworm, bookworm (security) | 6.1.6+dfsg1-0+deb12u1 | fixed | |
sid, trixie | 6.6.1+dfsg1-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
wordpress | source | stretch | 4.7.22+dfsg-0+deb9u1 | DLA-2884-1 | ||
wordpress | source | buster | 5.0.15+dfsg1-0+deb10u1 | DSA-5039-1 | ||
wordpress | source | bullseye | 5.7.5+dfsg1-0+deb11u1 | DSA-5039-1 | ||
wordpress | source | (unstable) | 5.8.3+dfsg1-1 | 1003243 |
https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/
https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84
https://github.com/WordPress/wordpress-develop/commit/17efac8c8ec64555eff5cf51a3eff81e06317214
https://hackerone.com/reports/1378209
https://www.zerodayinitiative.com/blog/2022/1/18/cve-2021-21661-exposing-database-info-via-wordpress-sql-injection