CVE-2021-42717
JSON

7.5high

ModSecurity 3.x through 3.0.5 mishandles excessively nested JSON objects.

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
3.34% (higher than 88% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
BIT-MODSECURITY-2021-42717BIT-MODSECURITY2-2021-42717

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
owasp modsecurityfrom 3.0.0 before 3.0.6NVD
trustwave modsecurityfrom 2.0.0 before 2.9.5NVD
f5 nginx_modsecurity_wafr24, r25NVD
debian debian_linux9.0, 10.0, 11.0NVD
oracle http_server12.2.1.3.0, 12.2.1.4.0NVD
oracle zfs_storage_appliance_kit8.8NVD
modsecurity (Bitnami)from 2.0.0 before 2.9.5Bitnami Vulnerability Database
modsecurity2 (Bitnami)from 2.0.0 before 2.9.5Bitnami Vulnerability Database

All scores

NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

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.

NVD (es)

ModSecurity versiones 3.x hasta 3.0.5, maneja inapropiadamente los objetos JSON excesivamente anidados. Los objetos JSON diseñados con un anidamiento de decenas de miles de metros de profundidad podían hacer que el servidor web no pudiera atender peticiones legítimas. Incluso una petición HTTP moderadamente grande (por ejemplo, 300KB) puede ocupar uno de los limitados procesos de trabajo de NGINX durante minutos y consumir casi toda la CPU disponible en la máquina. Modsecurity 2 es igualmente vulnerable: las versiones afectadas incluyen la 2.8.0 hasta la 2.9.4

References

Sources

SourceRecordLicence
CVE ListCVE-2021-42717 changed 2024-08-04CVE Terms of Use
NVDCVE-2021-42717 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-MODSECURITY-2021-42717 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-MODSECURITY2-2021-42717 changed 2026-09-08Apache-2.0