7.5high
ModSecurity 3.x through 3.0.5 mishandles excessively nested JSON objects.
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 3.34% (higher than 88% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- BIT-MODSECURITY-2021-42717BIT-MODSECURITY2-2021-42717
Description
ModSecurity 3.x through 3.0.5 mishandles excessively nested JSON objects. Crafted JSON objects with nesting tens-of-thousands deep could result in the web server being unable to service legitimate requests. Even a moderately large (e.g., 300KB) HTTP request can occupy one of the limited NGINX worker processes for minutes and consume almost all of the available CPU on the machine. Modsecurity 2 is similarly vulnerable: the affected versions include 2.8.0 through 2.9.4.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| owasp modsecurity | from 3.0.0 before 3.0.6 | NVD |
| trustwave modsecurity | from 2.0.0 before 2.9.5 | NVD |
| f5 nginx_modsecurity_waf | r24, r25 | NVD |
| debian debian_linux | 9.0, 10.0, 11.0 | NVD |
| oracle http_server | 12.2.1.3.0, 12.2.1.4.0 | NVD |
| oracle zfs_storage_appliance_kit | 8.8 | NVD |
| modsecurity (Bitnami) | from 2.0.0 before 2.9.5 | Bitnami Vulnerability Database |
| modsecurity2 (Bitnami) | from 2.0.0 before 2.9.5 | Bitnami Vulnerability Database |
All scores
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
ModSecurity 3.x through 3.0.5 mishandles excessively nested JSON objects. Crafted JSON objects with nesting tens-of-thousands deep could result in the web server being unable to service legitimate requests. Even a moderately large (e.g., 300KB) HTTP request can occupy one of the limited NGINX worker processes for minutes and consume almost all of the available CPU on the machine. Modsecurity 2 is similarly vulnerable: the affected versions include 2.8.0 through 2.9.4.
NVD (es)
ModSecurity versiones 3.x hasta 3.0.5, maneja inapropiadamente los objetos JSON excesivamente anidados. Los objetos JSON diseñados con un anidamiento de decenas de miles de metros de profundidad podían hacer que el servidor web no pudiera atender peticiones legítimas. Incluso una petición HTTP moderadamente grande (por ejemplo, 300KB) puede ocupar uno de los limitados procesos de trabajo de NGINX durante minutos y consumir casi toda la CPU disponible en la máquina. Modsecurity 2 es igualmente vulnerable: las versiones afectadas incluyen la 2.8.0 hasta la 2.9.4
References
| https://www.debian.org/security/2021/dsa-5023 | advisory, third-party-advisory, vendor-advisory | |
| https://www.oracle.com/security-alerts/cpuapr2022.html | advisory, patch, third-party-advisory | |
| https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/modsecurity-dos-vulnerability-in-json-parsing-cve-2021-42717/ | advisory, exploit, mitigation, vendor-advisory | |
| https://lists.debian.org/debian-lts-announce/2022/05/msg00042.html | advisory, mailing-list, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-42717 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-42717 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2021-42717 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-MODSECURITY-2021-42717 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-MODSECURITY2-2021-42717 changed 2026-09-08 | Apache-2.0 |