CVE-2021-42717

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductOwasp Modsecurity
PublishedDec 7, 2021
First seenDec 7, 2021

How to fix

Update
  • owasp modsecurity3.0.6 or later
  • trustwave modsecurity2.9.5 or later

Affected products

ProductAffected versionsFixed in
owasp modsecurity3.0.0 ≤ v < 3.0.63.0.6
trustwave modsecurity2.0.0 ≤ v < 2.9.52.9.5
f5 nginx_modsecurity_wafr24, r25—
debian debian_linux9.0, 10.0, 11.0—
oracle http_server12.2.1.3.0, 12.2.1.4.0—
oracle zfs_storage_appliance_kit8.8—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.