CVE-2021-42717Owasp Modsecurity
High 7.5 No auth needed
Follow: this CVE · Owasp · Owasp Modsecurity We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 3.3% probability of exploitation in 30 days · percentile 89
- Auth required
- No
- Published
- Dec 7, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-674
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Modsecurity.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| owasp | modsecurity | ≥ 3.0.0 < 3.0.6 |
| trustwave | modsecurity | ≥ 2.0.0 < 2.9.5 |
| f5 | nginx_modsecurity_waf | r24 |
| f5 | nginx_modsecurity_waf | r25 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
| debian | debian_linux | 11.0 |
| oracle | http_server | 12.2.1.3.0 |
| oracle | http_server | 12.2.1.4.0 |
| oracle | zfs_storage_appliance_kit | 8.8 |
Official sources
References
Links published by the sources. Open them with care.
- lists.debian.org Mailing List Third Party Advisory
- www.debian.org Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.trustwave.com Exploit Mitigation Vendor Advisory