SQL Injection in WordPress

CVE-2022-21661

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.

Vulnerability class: SQL Injection

EPSS: 0.978 (99.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.0 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2022-21661?
CVE-2022-21661 is a high-severity vulnerability in WordPress, classified under SQL Injection. CVSS score: 8.0/10. Published 2022-01-06.
How severe is CVE-2022-21661?
High severity. CVSS v3 base score is 8.0 out of 10.
Is CVE-2022-21661 known to be exploited?
54 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.