CVE-2021-42717
A public proof of concept exists; no exploitation attested.
- Published2021-12-07
- WeaknessCWE-674
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2021-12-0722:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 9.0 | = 9.0 | no fix published | NVD |
| 10.0 | = 10.0 | no fix published | NVD |
| 11.0 | = 11.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| — | = r24 | no fix published | NVD |
| — | = r25 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 12.2 | = 12.2.1.3.0 | no fix published | NVD |
| 12.2 | = 12.2.1.4.0 | no fix published | NVD |
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
Fix
Advisories and patches
- www.oracle.comPatch
- www.trustwave.comMitigation · Vendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub1 repository, unverifiedknown since 2026-11-01EkamSinghWalia/Detection-and-Mitigation-script-for-CVE-2021-42717
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.17.5read 2026-10-23
- NVDCVSS 2.05read 2026-10-23
- NVDweakness (CWE)CWE-674read 2026-10-23
- FIRST EPSSEPSS score3.3 %2026-12-03
- PoC-in-GitHubproof of concept1known since 2026-11-01
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-44934same flawAzure Linux · MIT
- BIT-modsecurity-2021-42717same flawBitnami · Apache-2.0
- BIT-modsecurity2-2021-42717same flawBitnami · Apache-2.0
- EUVD-2021-29677same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-w3vf-7fpc-9fwwsame flawGitHub Advisory Database · CC-BY-4.0
- DLA-3031-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5023-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2021-0576advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2021-1464advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2022-1954advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2023:0257-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2023:0269-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- USN-6370-1advisory covering several CVEsUbuntu
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?
Is CVE-2021-42717 actively exploited?
What is the CVSS score for CVE-2021-42717?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2020-15598same product
- CVE-2022-48279same product
- CVE-2023-24021same product
- CVE-2025-48866same productModSecurity has possible DoS vulnerability in sanitiseArg action
- CVE-2024-46292same product
- CVE-2023-28882same product
- CVE-2024-1019same product
- CVE-2025-47947same productModSecurity Has Possible DoS Vulnerability
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-w3vf-7fpc-9fww
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0