CVE-2021-42717: ModSecurity - Denial of Service
- Cve: CVE-2021-42717
- Name: ModSecurity - Denial of Service
- 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.
- Impact: Attackers can cause the web server to become unresponsive, leading to denial of service and resource exhaustion.
- Remediation: Update to the latest version of ModSecurity that addresses this issue or apply relevant patches.
- Vulnerability type: denial_of_service
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.03339
- Epss percentile: 0.88866
- Assignee: [email protected]
- Published at: 2021-12-07T22:15:06Z
- Age in days: 1813
- Modified at: 2026-06-17T04:10:00Z
- Patch available: yes
- Public exploits total: 2
- References total: 4
- Products total: 6
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-42717
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-674 | Uncontrolled Recursion |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/modsecurity-dos-vulnerability-in-json-parsing-cve-2021-42717/ | nvd | 2021-12-07 |
| https://github.com/EkamSinghWalia/Detection-and-Mitigation-script-for-CVE-2021-42717 | poc-in-github | 2022-11-20 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://www.oracle.com/security-alerts/cpuapr2022.html | Patch, Third Party Advisory |
| https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/modsecurity-dos-vulnerability-in-json-parsing-cve-2021-42717/ | Exploit, Mitigation, Vendor Advisory |
| https://lists.debian.org/debian-lts-announce/2022/05/msg00042.html | Mailing List, Third Party Advisory |
| https://www.debian.org/security/2021/dsa-5023 | Third Party Advisory |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| owasp:modsecurity | >= 3.0.0, < 3.0.6 | /v1/products/owasp/modsecurity |
| trustwave:modsecurity | >= 2.0.0, < 2.9.5 | /v1/products/trustwave/modsecurity |
| debian:debian_linux | = 11.0, = 10.0, = 9.0 | /v1/products/debian/debian_linux |
| oracle:zfs_storage_appliance_kit | = 8.8 | /v1/products/oracle/zfs_storage_appliance_kit |
| oracle:http_server | = 12.2.1.4.0, = 12.2.1.3.0 | /v1/products/oracle/http_server |
| f5:nginx_modsecurity_waf | = r25, = r24 | /v1/products/f5/nginx_modsecurity_waf |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| owasp-modsecurity/ModSecurity | fix | yes | /v1/repositories/owasp-modsecurity/ModSecurity |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2021-12-07
- Remote: yes
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports