SOC status:Duty analyst on shift

UK Cyber Defence
VulnerabilityAnalyzed

CVE-2022-21661

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.

EXPLOITHIGH 7.5EPSS 97.8%

Does this matter?

EPSS puts the probability of exploitation in the next 30 days at 97.8%, higher than 100% of all known CVEs. Patch or mitigate before the next change window.

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.

CVSS 3.1
7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
97.80% probability · 100th percentile
Public exploits
1 in Exploit-DB · first 13 January 2022
CISA KEV
Not listed
Weakness
CWE-89
Affected
wordpress/wordpress · fedoraproject/fedora · debian/debian linux
Source
security-advisories@github.com
EPSS trend
0%50%100%3 November 2026: 97.80%3 November 20263 November 2026

EPSS 97.8% since 3 November 2026; no change recorded yet. The dashed line is the ten per cent mark our analysts treat as “patch before the next change window”. Points are recorded when the score first appears and whenever it moves by a percentage point or more.

Public exploits (1)

Entries in Exploit-DB that cite this CVE. Links go to the Exploit-DB page and to the file in the public repository; nothing is hosted here. A verified tick means the Exploit-DB team confirmed the exploit works against the stated version.

EDB-IDTitleTypePublishedVerified
EDB-50663source ↗WordPress Core 5.8.2 - 'WP_Query' SQL Injectionphp · Aryan Chehreghaniwebapps13 January 2022no

References

Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.