Skip to main content
Public proof of conceptFix available

CVE-2021-42717

A public proof of concept exists; no exploitation attested.

  • Published2021-12-07
  • WeaknessCWE-674

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2021-12-0722:15CVE publishedNVD

Versions per branch

NVD
Debian debian linux
BranchAffectedFixed in
9.0= 9.0no fix published
10.0= 10.0no fix published
11.0= 11.0no fix published
F5 nginx modsecurity waf
BranchAffectedFixed in
—= r24no fix published
—= r25no fix published
Oracle http server
BranchAffectedFixed in
12.2= 12.2.1.3.0no fix published
12.2= 12.2.1.4.0no fix published

3 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • apache-mod_securityMageia:8all versions · fixed in 2.9.5-1.mga8
  • mod_securityopenEuler:20.03-LTS-SP3all versions · fixed in 2.9.5-1.oe1
  • mod_securityopenEuler:20.03-LTS-SP2all versions · fixed in 2.9.5-1.oe1
  • mod_securityopenEuler:20.03-LTS-SP1all versions · fixed in 2.9.5-1.oe1
  • mod_securityAzure Linux:3all versions · fixed in 2.9.7-8
  • modsecurityUbuntu:26.10all versions · no fixed version listed
  • modsecurityUbuntu:26.04:LTSall versions · no fixed version listed
  • modsecurityUbuntu:25.10all versions · no fixed version listed

21 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-42717 Red Hat Product Security

    libmodsecurity: crafted JSON objects with nesting could result in the web server being unable to service legitimate requests

Full record on NVD

Fix

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2021-12-07
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-w3vf-7fpc-9fww

Frequently asked questions

What is CVE-2021-42717?

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.

Is CVE-2021-42717 actively exploited?

Active exploitation of CVE-2021-42717 has not been confirmed. Its EPSS score was 3.3% on 2026-12-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-42717?

CVE-2021-42717 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running modsecurity? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record