Uncontrolled Recursion Affecting modsecurity package, versions <3.0.6-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
3.25% (88th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-MODSECURITY-20360736
  • published1 Oct 2026
  • disclosed7 Dec 2021

Introduced: 7 Dec 2021

CVE-2021-42717  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade Echo:latest modsecurity to version 3.0.6-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream modsecurity package and not the modsecurity package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1