CVE-2022-21661

HIGH7.5EPSS 90.4%

SQL injection in WordPress

Published: 1/6/2022Modified: 5/27/2026

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 (5)

  • Bitnami/wordpress>= 3.7.0, < 3.7.37, >= 3.8.0, < 3.8.37, >= 3.9.0, < 3.9.35, >= 4.0.0, < 4.0.34, >= 4.1.0, < 4.1.34, >= 4.2.0, < 4.2.31, >= 4.3.0, < 4.3.27, >= 4.4.0, < 4.4.26, >= 4.5.0, < 4.5.25, >= 4.6.0, < 4.6.22, >= 4.7.0, < 4.7.22, >= 4.8.0, < 4.8.18, >= 4.9.0, < 4.9.19, >= 5.0.0, < 5.0.15, >= 5.1.0, < 5.1.12, >= 5.2.0, < 5.2.14, >= 5.3.0, < 5.3.11, >= 5.4.0, < 5.4.9, >= 5.5.0, < 5.5.8, >= 5.6.0, < 5.6.7, >= 5.7.0, < 5.7.5, >= 5.8.0, < 5.8.3
  • Bitnami/wordpress-multisite>= 3.7.0, < 3.7.37, >= 3.8.0, < 3.8.37, >= 3.9.0, < 3.9.35, >= 4.0.0, < 4.0.34, >= 4.1.0, < 4.1.34, >= 4.2.0, < 4.2.31, >= 4.3.0, < 4.3.27, >= 4.4.0, < 4.4.26, >= 4.5.0, < 4.5.25, >= 4.6.0, < 4.6.22, >= 4.7.0, < 4.7.22, >= 4.8.0, < 4.8.18, >= 4.9.0, < 4.9.19, >= 5.0.0, < 5.0.15, >= 5.1.0, < 5.1.12, >= 5.2.0, < 5.2.14, >= 5.3.0, < 5.3.11, >= 5.4.0, < 5.4.9, >= 5.5.0, < 5.5.8, >= 5.6.0, < 5.6.7, >= 5.7.0, < 5.7.5, >= 5.8.0, < 5.8.3
  • Debian/wordpressfrom 0, < 5.7.5+dfsg1-0+deb11u1
  • Debian/wordpressfrom 0, < 4.7.22+dfsg-0+deb9u1
  • Debian/wordpressfrom 0, < 5.0.15+dfsg1-0+deb10u1

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1HIGH7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

References (13)