# CVE-2021-42717: ModSecurity 3.x through 3.0.5 mishandles excessively nested JSON objects.

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.34%, higher than 88% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-07T21:08:28.000Z
- Modified: 2026-09-08T08:48:13.904Z
- Also known as: BIT-MODSECURITY-2021-42717, BIT-MODSECURITY2-2021-42717
- Weaknesses: CWE-674
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- owasp modsecurity: from 3.0.0 before 3.0.6
- trustwave modsecurity: from 2.0.0 before 2.9.5
- f5 nginx_modsecurity_waf: r24; r25
- debian debian_linux: 9.0; 10.0; 11.0
- oracle http_server: 12.2.1.3.0; 12.2.1.4.0
- oracle zfs_storage_appliance_kit: 8.8
- modsecurity (Bitnami): from 2.0.0 before 2.9.5
- modsecurity2 (Bitnami): from 2.0.0 before 2.9.5

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/modsecurity-dos-vulnerability-in-json-parsing-cve-2021-42717/> (exploit, advisory, mitigation, vendor-advisory)
- <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://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

- CVE List: [CVE-2021-42717](https://www.cve.org/CVERecord?id=CVE-2021-42717), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-42717](https://nvd.nist.gov/vuln/detail/CVE-2021-42717), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MODSECURITY-2021-42717](https://osv.dev/vulnerability/BIT-MODSECURITY-2021-42717), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-MODSECURITY2-2021-42717](https://osv.dev/vulnerability/BIT-MODSECURITY2-2021-42717), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-42717 · Whole record: https://cve.day/CVE-2021-42717.json · Rebuilt by cve.day 2026-11-25T22:58:05.865Z
