Vulnerability from bitnami_vulndb
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": [
{
"package": {
"ecosystem": "Bitnami",
"name": "wordpress",
"purl": "pkg:bitnami/wordpress"
},
"ranges": [
{
"events": [
{
"introduced": "3.7.0"
},
{
"fixed": "3.7.37"
},
{
"introduced": "3.8.0"
},
{
"fixed": "3.8.37"
},
{
"introduced": "3.9.0"
},
{
"fixed": "3.9.35"
},
{
"introduced": "4.0.0"
},
{
"fixed": "4.0.34"
},
{
"introduced": "4.1.0"
},
{
"fixed": "4.1.34"
},
{
"introduced": "4.2.0"
},
{
"fixed": "4.2.31"
},
{
"introduced": "4.3.0"
},
{
"fixed": "4.3.27"
},
{
"introduced": "4.4.0"
},
{
"fixed": "4.4.26"
},
{
"introduced": "4.5.0"
},
{
"fixed": "4.5.25"
},
{
"introduced": "4.6.0"
},
{
"fixed": "4.6.22"
},
{
"introduced": "4.7.0"
},
{
"fixed": "4.7.22"
},
{
"introduced": "4.8.0"
},
{
"fixed": "4.8.18"
},
{
"introduced": "4.9.0"
},
{
"fixed": "4.9.19"
},
{
"introduced": "5.0.0"
},
{
"fixed": "5.0.15"
},
{
"introduced": "5.1.0"
},
{
"fixed": "5.1.12"
},
{
"introduced": "5.2.0"
},
{
"fixed": "5.2.14"
},
{
"introduced": "5.3.0"
},
{
"fixed": "5.3.11"
},
{
"introduced": "5.4.0"
},
{
"fixed": "5.4.9"
},
{
"introduced": "5.5.0"
},
{
"fixed": "5.5.8"
},
{
"introduced": "5.6.0"
},
{
"fixed": "5.6.7"
},
{
"introduced": "5.7.0"
},
{
"fixed": "5.7.5"
},
{
"introduced": "5.8.0"
},
{
"fixed": "5.8.3"
}
],
"type": "SEMVER"
}
],
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
"type": "CVSS_V3"
}
]
}
],
"aliases": [
"CVE-2022-21661"
],
"database_specific": {
"cpes": [
"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*"
],
"severity": "High"
},
"details": "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.",
"id": "BIT-wordpress-2022-21661",
"modified": "2026-09-08T08:34:36.952Z",
"published": "2024-03-06T11:10:19.099Z",
"references": [
{
"type": "ADVISORY",
"url": "http://packetstormsecurity.com/files/165540/WordPress-Core-5.8.2-SQL-Injection.html"
},
{
"type": "ADVISORY",
"url": "https://github.com/WordPress/wordpress-develop/commit/17efac8c8ec64555eff5cf51a3eff81e06317214"
},
{
"type": "ADVISORY",
"url": "https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-6676-cqfm-gw84"
},
{
"type": "ADVISORY",
"url": "https://lists.debian.org/debian-lts-announce/2022/01/msg00019.html"
},
{
"type": "ADVISORY",
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CV4UNEC63UU5GEU47IIR4RMTZAHNEOJG/"
},
{
"type": "ADVISORY",
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DM6XPH3JN6V4NF4WBOJTOXZIVE6VKKE3/"
},
{
"type": "ADVISORY",
"url": "https://wordpress.org/news/2022/01/wordpress-5-8-3-security-release/"
},
{
"type": "ADVISORY",
"url": "https://www.debian.org/security/2022/dsa-5039"
},
{
"type": "ADVISORY",
"url": "https://www.exploit-db.com/exploits/50663"
},
{
"type": "ADVISORY",
"url": "https://www.zerodayinitiative.com/advisories/ZDI-22-020/"
},
{
"type": "ADVISORY",
"url": "https://www.vicarius.io/vsociety/posts/understanding-the-wordpress-sql-injection-vulnerability-cve-2022-21661"
},
{
"type": "WEB",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-21661"
}
],
"schema_version": "1.5.0",
"summary": "SQL injection in WordPress"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.