CVE-2022-21661
SQL injection in WordPress
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 97.795% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:28:52.703Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 8 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
Assessment source · checked 2026-11-19T10:45:44.692Z
CVSS 3.1 · 8 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
Assessment source · checked 2026-11-19T14:19:24.656Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:28:52.703Z | CISA KEV |
| cvss | verified | 2026-11-19T10:45:44.692Z | CVE Program |
| epss | verified | 2026-11-19T16:04:32.376Z | FIRST EPSS |
| patches | verified | 2026-11-19T14:19:24.656Z | Ubuntu Security |
| affected | verified | 2026-11-19T10:45:44.692Z | CVE Program |
| lifecycle | verified | 2026-11-19T10:45:44.692Z | CVE Program |
Affected versions and configuration
WordPress wordpress-develop; default status: unknown: < 5.8.3 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
Ubuntu Security · ubuntu-package · full conditions
[
{
"name": "wordpress",
"debian": "https://tracker.debian.org/pkg/wordpress",
"source": "https://ubuntu.com/security/cve?package=wordpress",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=wordpress",
"statuses": [
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "xenial"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5.8.3+dfsg1-1ubuntu1",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "end of life",
"release_codename": "hirsute"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "end of life",
"release_codename": "impish"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "end of standard support",
"release_codename": "trusty"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "5.8.3+dfsg1-1",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "bionic"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5.8.3+dfsg1-1ubuntu1",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5.8.3+dfsg1-1ubuntu1",
"release_codename": "kinetic"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5.8.3+dfsg1-1ubuntu1",
"release_codename": "lunar"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5.8.3+dfsg1-1ubuntu1",
"release_codename": "mantic"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5.8.3+dfsg1-1ubuntu1",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5.8.3+dfsg1-1ubuntu1",
"release_codename": "oracular"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5.8.3+dfsg1-1ubuntu1",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5.8.3+dfsg1-1ubuntu1",
"release_codename": "questing"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "5.8.3+dfsg1-1ubuntu1",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "focal"
}
]
}
]Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "WordPress",
"product": "wordpress-develop",
"versions": [
{
"status": "affected",
"version": "< 5.8.3"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://github.com/WordPress/wordpress-develop/commit/17efac8c8ec64555eff5cf51a3eff81e06317214",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://www.zerodayinitiative.com/advisories/ZDI-22-020/",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://www.debian.org/security/2022/dsa-5039",
"name": "DSA-5039",
"tags": [
"vendor-advisory",
"x_refsource_DEBIAN",
"x_transferred"
]
},
{
"url": "https://www.exploit-db.com/exploits/50663",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "http://packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DM6XPH3JN6V4NF4WBOJTOXZIVE6VKKE3/",
"name": "FEDORA-2022-8472dd59ff",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CV4UNEC63UU5GEU47IIR4RMTZAHNEOJG/",
"name": "FEDORA-2022-e37e1e6c7a",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
]
},
{
"url": "https://lists.debian.org/debian-lts-announce/2022/01/msg00019.html",
"name": "[debian-lts-announce] 20220123 [SECURITY] [DLA 2884-1] wordpress security update",
"tags": [
"mailing-list",
"x_refsource_MLIST",
"x_transferred"
]
},
{
"url": "https://www.vicarius.io/vsociety/posts/understanding-the-wordpress-sql-injection-vulnerability-cve-2022-21661"
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-19T07:48:16.240Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2022-21661",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2024-09-09T14:12:39.836888Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-09-09T14:13:15.875Z"
}
}
]
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| upstream-release | upstream / upstream | wordpress | Not a distribution channel | 5.8.3+dfsg1-1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T10:45:44.692ZArchived source JSON
Source publication: 2022-01-06T22:50:11.000Z
Source modification: 2024-09-09T14:13:15.875ZDocument fingerprint
9cc5e166d39902765ea3596cce132373afe69451f1c8d357c14f71bf187da85a - CISA KEVConsulted: 2026-11-19T17:28:52.703ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - Ubuntu SecurityConsulted: 2026-11-19T14:19:24.656ZArchived source JSON
Source publication: 2022-01-06T23:15:00.000Z
Source modification: 2025-06-24T14:57:14.025ZDocument fingerprint
bb39d715d879dd3a9aff2a393e89382a3ee9a5894d6b4ff921df240e814c9ea5 - FIRST EPSSConsulted: 2026-11-19T16:04:32.376ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
4d5217b2483c05232e728ff4c4aeff80a4cc51c89af7da0c5fa02c307b37b851
Official status history
- UNKNOWN → PUBLISHED · · evidence