CVE-2021-42717

HIGHCVSS 7.5/10EPSS 3.21%

Last modified

CVE-2021-42717 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 3.21% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
7.5/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS Probability
3.21%

86.5th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
OwaspModsecurity>= 3.0.0, < 3.0.6
TrustwaveModsecurity>= 2.0.0, < 2.9.5
F5Nginx Modsecurity Wafr24
F5Nginx Modsecurity Wafr25
DebianDebian Linux9.0
DebianDebian Linux10.0
DebianDebian Linux11.0
OracleHttp Server12.2.1.3.0
OracleHttp Server12.2.1.4.0
OracleZfs Storage Appliance Kit8.8

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is 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 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.
How severe is CVE-2021-42717?
CVE-2021-42717 has a CVSS score of 7.5/10 (HIGH severity). The EPSS model estimates a 3.21% probability of exploitation in the next 30 days.
How do I fix CVE-2021-42717?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-42717?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST