CVE-2021-42717 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 req...
HighCVSS 7.5
EPSS 3.3%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- NginxUbuntuDebian
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.
Upgrade path
21 packages: 11 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/modsecurity(Ubuntu 20.04) | = 3.0.3-1; = 3.0.4-1; = 3.0.4-1build1; All versions | No fix listed | No fix yet |
| ubuntu/modsecurity(Ubuntu 22.04) | = 3.0.4-2; = 3.0.6-1; All versions | No fix listed | No fix yet |
| ubuntu/modsecurity(Ubuntu 24.04) | = 3.0.10-1; = 3.0.11-1; = 3.0.12-1; = 3.0.12-1.1build1 +2 more | No fix listed | No fix yet |
| ubuntu/modsecurity(Ubuntu 25.10) | = 3.0.13-1; = 3.0.14-1; = 3.0.14-1build1; All versions | No fix listed | No fix yet |
| ubuntu/modsecurity(Ubuntu 26.04) | = 3.0.14-1build1; = 3.0.14-1build2; All versions | No fix listed | No fix yet |
| ubuntu/modsecurity(Ubuntu 26.10) | = 3.0.14-1build2; = 3.0.15-1; = 3.0.16-1; All versions | No fix listed | No fix yet |
| debian/modsecurity(Debian 12) | < 3.0.6-1 | 3.0.6-1 | Fixed |
| debian/modsecurity(Debian 13) | < 3.0.6-1 | 3.0.6-1 | Fixed |
| debian/modsecurity(Debian 14) | < 3.0.6-1 | 3.0.6-1 | Fixed |
| debian/modsecurity-apache(Debian 12) | < 2.9.5-1 | 2.9.5-1 | Fixed |
| debian/modsecurity-apache(Debian 13) | < 2.9.5-1 | 2.9.5-1 | Fixed |
| debian/modsecurity-apache(Debian 14) | < 2.9.5-1 | 2.9.5-1 | Fixed |
| owasp modsecurity | >= 3.0.0, < 3.0.6 | 3.0.6 | Fixed |
| trustwave modsecurity | >= 2.0.0, < 2.9.5 | 2.9.5 | Fixed |
| ubuntu/modsecurity-apache(Ubuntu 20.04) | < 2.9.3-1ubuntu0.1; = 2.9.3-1 | 2.9.3-1ubuntu0.1 | Fixed |
| ubuntu/modsecurity-apache(Ubuntu Pro 16.04) | < 2.9.0-1ubuntu0.1~esm1; = 2.9.0-1 | 2.9.0-1ubuntu0.1~esm1 | Fixed |
| ubuntu/modsecurity-apache(Ubuntu Pro 18.04) | < 2.9.2-1ubuntu0.1~esm1; = 2.9.1-3; = 2.9.2-1 | 2.9.2-1ubuntu0.1~esm1 | Fixed |
| debian linux | = 9.0; = 10.0; = 11.0 | No fix listed | Versions listed |
| f5 nginx modsecurity waf | = r24; = r25 | No fix listed | Versions listed |
| oracle http server | = 12.2.1.3.0; = 12.2.1.4.0 | No fix listed | Versions listed |
| oracle zfs storage appliance kit | = 8.8 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/modsecurity(Debian:12) | < 3.0.6-1 | 3.0.6-1 |
| debian/modsecurity(Debian:13) | < 3.0.6-1 | 3.0.6-1 |
| debian/modsecurity(Debian:14) | < 3.0.6-1 | 3.0.6-1 |
| debian/modsecurity-apache(Debian:12) | < 2.9.5-1 | 2.9.5-1 |
| debian/modsecurity-apache(Debian:13) | < 2.9.5-1 | 2.9.5-1 |
| debian/modsecurity-apache(Debian:14) | < 2.9.5-1 | 2.9.5-1 |
| ubuntu/modsecurity(Ubuntu:22.04) | All versions | No fix listed |
| owasp modsecurity | >= 3.0.0, < 3.0.6 | 3.0.6 |
| trustwave modsecurity | >= 2.0.0, < 2.9.5 | 2.9.5 |
| f5 nginx modsecurity waf | = r24 | No fix listed |
| f5 nginx modsecurity waf | = r25 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| debian linux | = 10.0 | No fix listed |
| debian linux | = 11.0 | No fix listed |
| oracle http server | = 12.2.1.3.0 | No fix listed |
| oracle http server | = 12.2.1.4.0 | No fix listed |
| oracle zfs storage appliance kit | = 8.8 | No fix listed |
| ubuntu/modsecurity(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/modsecurity(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/modsecurity(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/modsecurity-apache(Ubuntu:Pro:16.04) | < 2.9.0-1ubuntu0.1~esm1 | 2.9.0-1ubuntu0.1~esm1 |
| ubuntu/modsecurity-apache(Ubuntu:Pro:16.04) | = 2.9.0-1 | No fix listed |
| ubuntu/modsecurity-apache(Ubuntu:Pro:18.04) | < 2.9.2-1ubuntu0.1~esm1 | 2.9.2-1ubuntu0.1~esm1 |
| ubuntu/modsecurity-apache(Ubuntu:Pro:18.04) | = 2.9.1-3 | No fix listed |
| ubuntu/modsecurity-apache(Ubuntu:Pro:18.04) | = 2.9.2-1 | No fix listed |
Show 22 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/modsecurity-apache(Ubuntu:20.04) | < 2.9.3-1ubuntu0.1 | 2.9.3-1ubuntu0.1 |
| ubuntu/modsecurity-apache(Ubuntu:20.04) | = 2.9.3-1 | No fix listed |
| ubuntu/modsecurity(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/modsecurity(Ubuntu:20.04) | = 3.0.3-1 | No fix listed |
| ubuntu/modsecurity(Ubuntu:20.04) | = 3.0.4-1 | No fix listed |
| ubuntu/modsecurity(Ubuntu:20.04) | = 3.0.4-1build1 | No fix listed |
| ubuntu/modsecurity(Ubuntu:22.04) | = 3.0.4-2 | No fix listed |
| ubuntu/modsecurity(Ubuntu:22.04) | = 3.0.6-1 | No fix listed |
| ubuntu/modsecurity(Ubuntu:24.04) | = 3.0.10-1 | No fix listed |
| ubuntu/modsecurity(Ubuntu:24.04) | = 3.0.11-1 | No fix listed |
| ubuntu/modsecurity(Ubuntu:24.04) | = 3.0.12-1 | No fix listed |
| ubuntu/modsecurity(Ubuntu:24.04) | = 3.0.12-1.1build1 | No fix listed |
| ubuntu/modsecurity(Ubuntu:24.04) | = 3.0.12-1.1build2 | No fix listed |
| ubuntu/modsecurity(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/modsecurity(Ubuntu:25.10) | = 3.0.13-1 | No fix listed |
| ubuntu/modsecurity(Ubuntu:25.10) | = 3.0.14-1 | No fix listed |
| ubuntu/modsecurity(Ubuntu:25.10) | = 3.0.14-1build1 | No fix listed |
| ubuntu/modsecurity(Ubuntu:26.10) | = 3.0.14-1build2 | No fix listed |
| ubuntu/modsecurity(Ubuntu:26.10) | = 3.0.15-1 | No fix listed |
| ubuntu/modsecurity(Ubuntu:26.10) | = 3.0.16-1 | No fix listed |
| ubuntu/modsecurity(Ubuntu:26.04) | = 3.0.14-1build1 | No fix listed |
| ubuntu/modsecurity(Ubuntu:26.04) | = 3.0.14-1build2 | No fix listed |
References
- Debian Security Tracker CVE-2021-42717 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6370-1 vendor-advisory
- www.cve.org issue-tracking
- [debian-lts-announce] 20220528 [SECURITY] [DLA 3031-1] modsecurity-apache security update mailing-list third-party-advisory
- DSA-5023 third-party-advisory vendor-advisory
- www.oracle.com patch third-party-advisory
- www.trustwave.com exploit mitigation vendor-advisory
- github.com issue-tracking