BIT-modsecurity2-2021-42717
Record from OSV · Published March 6, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| modsecurity2 | Bitnami | 2.9.5 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Bitnami | modsecurity2 | 2.0.0 |
Timeline
- Mar 6, 2024 CVE Published
- Jul 4, 2025 CVE Updated
- May 15, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln BIT-modsecurity2-2021-42717
vulnetix vdb fixes BIT-modsecurity2-2021-42717
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/BIT-modsecurity2-2021-42717/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://www.oracle.com/security-alerts/cpuapr2022.html url
- https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/modsecurity-dos-vulnerability-in-json-parsing-cve-2021-42717/ url
- https://nvd.nist.gov/vuln/detail/CVE-2021-42717 url
- https://lists.debian.org/debian-lts-announce/2022/05/msg00042.html url
- https://www.debian.org/security/2021/dsa-5023 url