cve.bz

CVE-2021-42717 Uncontrolled Recursion

7.5 highExploit referenceEPSS 3.3%Fix available

High (7.5). EPSS 3.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
3.3% (unchanged from 3.2% a week ago; 3.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-674 Uncontrolled Recursion
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-42717 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-42717?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-42717?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-42717 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
owasp:modsecurityfrom 3.0.0 before 3.0.6
trustwave:modsecurityfrom 2.0.0 before 2.9.5
f5:nginx_modsecurity_wafr24
f5:nginx_modsecurity_wafr25
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0
oracle:http_server12.2.1.3.0
oracle:http_server12.2.1.4.0
oracle:zfs_storage_appliance_kit8.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9modsecurity-apache2.9.1-2+deb9u1DLA-3031-1
Debian10modsecurity-apache2.9.3-1+deb10u1DSA-5023-1
Debian11modsecurity-apache2.9.3-3+deb11u1DSA-5023-1
Debian12, 13, 14modsecurity3.0.6-1DEBIAN-CVE-2021-42717
Debian12, 13, 14modsecurity-apache2.9.5-1DEBIAN-CVE-2021-42717
Ubuntu20.04:LTSmodsecurity-apache2.9.3-1ubuntu0.1UBUNTU-CVE-2021-42717 USN-6370-1
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 3 moremodsecurityno fix listedUBUNTU-CVE-2021-42717
UbuntuPro:14.04:LTSmodsecurity-apache2.7.7-2ubuntu0.1~esm1USN-6370-1
UbuntuPro:16.04:LTSmodsecurity-apache2.9.0-1ubuntu0.1~esm1UBUNTU-CVE-2021-42717 USN-6370-1
UbuntuPro:18.04:LTSmodsecurity-apache2.9.2-1ubuntu0.1~esm1UBUNTU-CVE-2021-42717 USN-6370-1
UbuntuPro:22.04:LTSmodsecurity-apache2.9.5-1ubuntu0.1~esm1USN-6370-1
SUSEPackage Hub 15 SP4modsecurity3.0.10-bp154.2.3.1openSUSE-SU-2023:0269-1
SUSEPackage Hub 15 SP5modsecurity3.0.10-bp155.3.3.1openSUSE-SU-2023:0257-1
openSUSELeap 15.4modsecurity3.0.10-bp154.2.3.1openSUSE-SU-2023:0269-1
openSUSELeap 15.5modsecurity3.0.10-bp155.3.3.1openSUSE-SU-2023:0257-1
Azure Linux3mod_security2.9.7-8AZL-44934

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Attack patterns (CAPEC)

  • CAPEC-230 Serialized Data with Nested Payloads Likelihood: Medium · Severity: High
  • CAPEC-231 Oversized Serialized Data Payloads Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON