WordPress security changelog
HIGH CVE-2022-21661 Analyzed

WordPress: SQL injection

WordPress is affected by SQL injection. Exposure depends on how the affected operation is made reachable by the site. A successful request can alter database queries and expose or modify WordPress data.

CVE / CNA score 8.0 CVSS 3.1 · security-advisories@github.com
NVD score 7.5 CVSS 3.1 · nvd@nist.gov
Component
WordPress
Plugin slug
Core
Affected
See vendor advisory
Safe version
See mitigation notes
Published
Jan 06, 2022
Weakness
CWE-89 — Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

This CVE was published Jan 06, 2022 and is one of 45 known issues for WordPress core.

Patch or disable the affected component.

Update WordPress to a release outside the affected range, or disable and remove it until a fixed version is available.

Technical 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.

CVE / CNA vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H

NVD vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Primary and upstream sources