# CVE-2021-42717

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-12-07 · Modified: 2024-08-04
- Aliases: MGASA-2021-0576, UBUNTU-CVE-2021-42717, DEBIAN-CVE-2021-42717, DLA-3031-1, DSA-5023-1
- Record: https://cvemate.com/vulnerability/CVE-2021-42717 · JSON: https://cvemate.com/vulnerability/CVE-2021-42717/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 3.339%, percentile 89.033%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian modsecurity (Debian): \< 3.0.6-1
- debian modsecurity-apache (Debian): \< 2.9.5-1 \| \< 2.9.1-2+deb9u1 \| \< 2.9.3-1+deb10u1 \| \< 2.9.3-3+deb11u1
- ubuntu modsecurity (Ubuntu): All versions (No fix recorded)
- ubuntu modsecurity-apache (Ubuntu): \< 2.9.0-1ubuntu0.1~esm1 \| \< 2.9.2-1ubuntu0.1~esm1 \| \< 2.9.3-1ubuntu0.1
- debian debian\_linux: 9.0 \| 10.0 \| 11.0
- f5 nginx\_modsecurity\_waf: r24 \| r25
- mageia apache-mod\_security (Mageia): \< 2.9.5-1.mga8
- oracle http\_server: 12.2.1.3.0 \| 12.2.1.4.0
- oracle zfs\_storage\_appliance\_kit: 8.8
- owasp modsecurity: ≥ 3.0.0, \< 3.0.6
- trustwave modsecurity: ≥ 2.0.0, \< 2.9.5

## References

- <https://www.debian.org/security/2021/dsa-5023>
- <https://www.oracle.com/security-alerts/cpuapr2022.html>
- <https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/modsecurity-dos-vulnerability-in-json-parsing-cve-2021-42717/>
- <https://lists.debian.org/debian-lts-announce/2022/05/msg00042.html>
- <https://advisories.mageia.org/MGASA-2021-0576.html>
- <https://bugs.mageia.org/show_bug.cgi?id=29787>
- <https://ubuntu.com/security/CVE-2021-42717>
- <https://github.com/SpiderLabs/ModSecurity/issues/2647>
- <https://ubuntu.com/security/notices/USN-6370-1>
- <https://www.cve.org/CVERecord?id=CVE-2021-42717>
- <https://security-tracker.debian.org/tracker/CVE-2021-42717>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-42717>

---

Data as of 2026-12-05T07:37:56.130Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
