8.0high
SQL injection in WordPress
- Severity
- 8.0high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 97.8% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- BIT-WORDPRESS-2022-21661BIT-WORDPRESS-MULTISITE-2022-21661GHSA-6676-cqfm-gw84
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| WordPress wordpress-develop | < 5.8.3 | CVE List |
| wordpress wordpress | from 3.7 before 3.7.37, from 3.8 before 3.8.37, from 3.9 before 3.9.35, from 4.0 before 4.0.34, from 4.1 before 4.1.34, from 4.2 before 4.2.31, from 4.3 before 4.3.27, from 4.4 before 4.4.26 and 14 more | NVD |
| fedoraproject fedora | 34, 35 | NVD |
| debian debian_linux | 9.0, 10.0, 11.0 | NVD |
| wordpress (Bitnami) | from 3.7.0 before 3.7.37, from 3.8.0 before 3.8.37, from 3.9.0 before 3.9.35, from 4.0.0 before 4.0.34, from 4.1.0 before 4.1.34, from 4.2.0 before 4.2.31, from 4.3.0 before 4.3.27, from 4.4.0 before 4.4.26 and 14 more | Bitnami Vulnerability Database |
| wordpress-multisite (Bitnami) | from 3.7.0 before 3.7.37, from 3.8.0 before 3.8.37, from 3.9.0 before 3.9.35, from 4.0.0 before 4.0.34, from 4.1.0 before 4.1.34, from 4.2.0 before 4.2.31, from 4.3.0 before 4.3.27, from 4.4.0 before 4.4.26 and 14 more | Bitnami Vulnerability Database |
All scores
| GitHub_M | 8.0high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
WordPress es un sistema de administración de contenidos gratuito y de código abierto escrito en PHP y emparejado con una base de datos MariaDB. Debido a un saneo inapropiado en WP_Query, puede haber casos en los que la inyección SQL es posible mediante plugins o temas que lo usan de una manera determinada. Esto ha sido parcheado en WordPress versión 5.8.3. Las versiones más antiguas afectadas también han sido corregidas por medio de un security release, que remonta hasta la versión 3.7.37. Le recomendamos encarecidamente que mantenga habilitadas las actualizaciones automáticas. No se presentan medidas de mitigación conocidas para esta vulnerabilidad.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-21661 changed 2024-09-09 | CVE Terms of Use |
| NVD | CVE-2022-21661 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-WORDPRESS-2022-21661 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-WORDPRESS-MULTISITE-2022-21661 changed 2026-09-08 | Apache-2.0 |