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.
- Component
- WordPress
- Plugin slug
Core- Affected
- See vendor advisory
- Safe version
- See mitigation notes
- Published
- Jan 06, 2022
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
- NVD record for CVE-2022-21661
- Upstream reference packetstormsecurity.com
- GitHub upstream reference github.com
- GitHub security advisory github.com
- Upstream reference lists.debian.org
- Upstream reference lists.fedoraproject.org
- Upstream reference lists.fedoraproject.org
- WordPress upstream reference wordpress.org
- Upstream reference debian.org
- Upstream reference exploit-db.com
- Upstream reference zerodayinitiative.com
- Upstream reference packetstormsecurity.com
- GitHub upstream reference github.com
- GitHub security advisory github.com
- Upstream reference lists.debian.org
- Upstream reference lists.fedoraproject.org
- Upstream reference lists.fedoraproject.org
- WordPress upstream reference wordpress.org
- Upstream reference debian.org
- Upstream reference exploit-db.com
- Upstream reference vicarius.io
- Upstream reference zerodayinitiative.com