CVE-2022-21661

NameCVE-2022-21661
DescriptionWordPress 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-2884-1, DSA-5039-1, ELA-539-1
NVD severitymedium
Debian Bugs1003243

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
wordpress (PTS)jessie, jessie (lts)4.1.34+dfsg-0+deb8u1fixed
stretch4.7.5+dfsg-2+deb9u6vulnerable
stretch (security)4.7.22+dfsg-0+deb9u1fixed
buster5.0.12+dfsg1-0+deb10u1vulnerable
buster (security)5.0.15+dfsg1-0+deb10u1fixed
bullseye5.7.3+dfsg1-0+deb11u1vulnerable
bullseye (security)5.7.5+dfsg1-0+deb11u1fixed
sid, bookworm5.8.3+dfsg1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
wordpresssourcejessie4.1.34+dfsg-0+deb8u1ELA-539-1
wordpresssourcestretch4.7.22+dfsg-0+deb9u1DLA-2884-1
wordpresssourcebuster5.0.15+dfsg1-0+deb10u1DSA-5039-1
wordpresssourcebullseye5.7.5+dfsg1-0+deb11u1DSA-5039-1
wordpresssource(unstable)5.8.3+dfsg1-11003243

Notes

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

Search for package or bug name: Reporting problems