Uncontrolled Recursion Affecting modsecurity-apache package, versions <2.9.3-1ubuntu0.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
2.05% (83rd 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-UBUNTU2004-MODSECURITYAPACHE-1930845
  • published25 Nov 2021
  • disclosed7 Dec 2021

Introduced: 25 Nov 2021

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

How to fix?

Upgrade Ubuntu:20.04 modsecurity-apache to version 2.9.3-1ubuntu0.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream modsecurity-apache package and not the modsecurity-apache package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 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