Skip to content
OpenAdvisories
High · 7.4 CVE-2022-21664 EUVD-2022-26881

SQL injection in WordPress

Published Jan 6, 2022 · Updated Apr 23, 2025 · 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.

Affected products

VendorProductAffectedFixed
WordPress wordpress-develop >= 4.1.33, < 5.8.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 wordpress 5.8.3+dfsg1-1 —
Debian 13 wordpress 5.8.3+dfsg1-1 —
Debian 12 wordpress 5.8.3+dfsg1-1 —
Debian 11 wordpress 5.7.5+dfsg1-0+deb11u1 DSA-5039-1
Debian 10 wordpress 5.0.15+dfsg1-0+deb10u1 DSA-5039-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 wordpress 4.7.22+dfsg-0+deb9u1 DLA-2884-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS wordpress No fix yet —
Ubuntu 18.04 LTS wordpress No fix yet —
Ubuntu 16.04 LTS wordpress No fix yet —

Advisories 2

References