CVEfocus › CVE database › CVE-2021-42717

CVE-2021-42717

CVSS 7.5 HighEPSS 3.3% (higher than 89% of CVEs)Published 2021-12-07Updated 2024-08-04Assigner: mitre

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.

What to do

Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
2Fix pending
3Under investigation
3Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10modsecurityFix pendingUBUNTU-CVE-2021-42717
Ubuntu 26.04modsecurityUnder investigationUBUNTU-CVE-2021-42717
Ubuntu 26.04modsecurity-apacheNot affected
vulnerable_code_not_present
Ubuntu 25.10modsecurityWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-42717
Ubuntu 25.10modsecurity-apacheNot affected
vulnerable_code_not_present
Ubuntu 24.04modsecurityUnder investigationUBUNTU-CVE-2021-42717
Ubuntu 22.04modsecurityUnder investigationUBUNTU-CVE-2021-42717
Ubuntu 20.04modsecurityWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-42717
Ubuntu 20.04modsecurity-apacheFixed2.9.3-1ubuntu0.1UBUNTU-CVE-2021-42717
Ubuntu 18.04modsecurity-apacheFix pending2.9.2-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-42717
Ubuntu 16.04modsecurity-apacheWill not fix
Ubuntu decided not to fix this in this release
2.9.0-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-42717
Debian 14modsecurityFixed3.0.6-1DEBIAN-CVE-2021-42717
Debian 14modsecurity-apacheFixed2.9.5-1DEBIAN-CVE-2021-42717
Debian 13modsecurityFixed3.0.6-1DEBIAN-CVE-2021-42717
Debian 13modsecurity-apacheFixed2.9.5-1DEBIAN-CVE-2021-42717
Debian 12modsecurityFixed3.0.6-1DEBIAN-CVE-2021-42717
Debian 12modsecurity-apacheFixed2.9.5-1DEBIAN-CVE-2021-42717

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.