CVE-2021-42717: High severity modsecurity vulnerability

Published Dec 7, 2021
·
Updated

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 Software

17 affected componentsFixes available
ubuntu/modsecurity-apache<2.9.2-1ubuntu0.1~
2.9.2-1ubuntu0.1~
ubuntu/modsecurity-apache<2.9.3-1ubuntu0.1
2.9.3-1ubuntu0.1
ubuntu/modsecurity-apache<2.9.0-1ubuntu0.1~
2.9.0-1ubuntu0.1~
ubuntu/modsecurity-apache<2.9.7-1
2.9.7-1
debian/modsecurity<=3.0.3-1+deb10u2, <=3.0.4-2
3.0.9-1+deb12u13.0.12-1
debian/modsecurity-apache
2.9.3-1+deb10u12.9.3-1+deb10u22.9.3-3+deb11u22.9.3-3+deb11u12.9.7-1
Trustwave ModSecurity>=2.0.0<2.9.5
Trustwave ModSecurity>=3.0.0<3.0.6
F5 Nginx Modsecurity Waf=r24
F5 Nginx Modsecurity Waf=r25
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
Oracle HTTP Server=12.2.1.3.0
Oracle HTTP Server=12.2.1.4.0
Oracle ZFS Storage Appliance Kit=8.8
OWASP Modsecurity>=3.0.0<3.0.6

Event History

Dec 7, 2021
CVE Published
via Ubuntu·12:00 AM
CVE Published
via MITRE·09:08 PM
Data Sourced
via MITRE·09:08 PM
Description
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 12, 2024
Data Sourced
via Launchpad·12:01 AM
Description

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-42717?

CVE-2021-42717 is a vulnerability in ModSecurity 3.x through 3.0.5 that mishandles excessively nested JSON objects.

2

How does CVE-2021-42717 affect ModSecurity?

CVE-2021-42717 can result in the web server being unable to service legitimate requests due to crafted JSON objects with excessive nesting.

3

What is the severity of CVE-2021-42717?

The severity of CVE-2021-42717 is moderate.

4

How can I mitigate CVE-2021-42717?

To mitigate CVE-2021-42717, update ModSecurity to version 2.9.2-1ubuntu0.1~ or apply the appropriate remedy provided by your distribution.

5

Where can I find more information about CVE-2021-42717?

More information about CVE-2021-42717 can be found on the CVE details page and the ModSecurity GitHub issue page.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203