Vulnerability · Published Dec 7, 2021 · Assigned by mitre
CVE-2021-42717
High 7.5
In plain English
A high-severity security flaw in the modsecurity package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.2% (higher than 88% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | modsecurity | 3.0.6-1 | DEBIAN-CVE-2021-42717 |
| Debian:13 | modsecurity | 3.0.6-1 | DEBIAN-CVE-2021-42717 |
| Debian:14 | modsecurity | 3.0.6-1 | DEBIAN-CVE-2021-42717 |
| Debian:12 | modsecurity-apache | 2.9.5-1 | DEBIAN-CVE-2021-42717 |
| Debian:13 | modsecurity-apache | 2.9.5-1 | DEBIAN-CVE-2021-42717 |
| Debian:14 | modsecurity-apache | 2.9.5-1 | DEBIAN-CVE-2021-42717 |
| Ubuntu:22.04:LTS | modsecurity | no fix listed | UBUNTU-CVE-2021-42717 |
| Ubuntu:24.04:LTS | modsecurity | no fix listed | UBUNTU-CVE-2021-42717 |
| Ubuntu:25.10 | modsecurity | no fix listed | UBUNTU-CVE-2021-42717 |
| Ubuntu:26.04:LTS | modsecurity | no fix listed | UBUNTU-CVE-2021-42717 |
| Ubuntu:26.10 | modsecurity | no fix listed | UBUNTU-CVE-2021-42717 |
Affected products (as reported)
References
- DSA-5023 vendor-advisory, x_refsource_DEBIAN
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC
- https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/modsecurity-dos-vulnerability-in-json-parsing-cve-2021-42717/ x_refsource_MISC
- [debian-lts-announce] 20220528 [SECURITY] [DLA 3031-1] modsecurity-apache security update mailing-list, x_refsource_MLIST