CVE catalog

CVE-2021-42717

modsecurity: CVE-2021-42717

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
3.25% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianmodsecuritysid3.0.16-1fixed
Debianmodsecurityforky3.0.16-1fixed
Debianmodsecuritytrixie3.0.14-1+deb13u1fixed
Debianmodsecuritybookworm3.0.9-1+deb12u2fixed
Debianmodsecurity-apachesid2.9.13-1fixed
Debianmodsecurity-apacheforky2.9.13-1fixed
Debianmodsecurity-apachetrixie2.9.11-1+deb13u1fixed
Debianmodsecurity-apachebookworm2.9.7-1+deb12u2fixed
Debianmodsecurity-apachebookworm-security2.9.7-1+deb12u1fixed
Ubuntumodsecurity-apachepro2.9.3-3vulnerable
Ubuntumodsecurity-apachepro2.9.5-1vulnerable
Ubuntumodsecurity-apachepro2.9.5-1ubuntu0.1~esm1fixed
Ubuntumodsecurity-apache20.042.9.3-1vulnerable
Ubuntumodsecurity-apache20.042.9.3-1ubuntu0.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianmodsecuritysourcesid3.0.6-1not yet assignedNot reportedNot reported
Debianmodsecuritysourceforky3.0.6-1not yet assignedNot reportedNot reported
Debianmodsecuritysourcetrixie3.0.6-1not yet assignedNot reportedNot reported
Debianmodsecuritysourcebookworm3.0.6-1not yet assignedNot reportedNot reported
Debianmodsecurity-apachesourcesid2.9.5-1not yet assignedNot reportedNot reported
Debianmodsecurity-apachesourceforky2.9.5-1not yet assignedNot reportedNot reported
Debianmodsecurity-apachesourcetrixie2.9.5-1not yet assignedNot reportedNot reported
Debianmodsecurity-apachesourcebookworm2.9.5-1not yet assignedNot reportedNot reported
Ubuntumodsecurity-apachedebpro2.9.5-1ubuntu0.1~esm1Not reportedUSN-6370-1Not reported
Ubuntumodsecurity-apachedeb20.042.9.3-1ubuntu0.1Not reportedUSN-6370-1Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [modsecurity-apache]

    Details (4)
    • 2.9.7-1+deb12u2 · amd64 · bookworm

      Fixed · Fixed: 2.9.5-1

      dsa · modsecurity-apache · debian · bookworm; dsa · modsecurity-apache · debian · 12

    • 2.9.7-1+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 2.9.5-1

      dsa · modsecurity-apache · debian · bookworm; dsa · modsecurity-apache · debian · 12

    • 2.9.7-1+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 2.9.5-1

      dsa · modsecurity-apache · debian · bookworm; dsa · modsecurity-apache · debian · 12

    • 2.9.7-1+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 2.9.5-1

      dsa · modsecurity-apache · debian · bookworm; dsa · modsecurity-apache · debian · 12

  • Source package: [modsecurity]

    Details (2)
    • 3.0.9-1+deb12u2 · amd64 · bookworm

      Fixed · Fixed: 3.0.6-1

      dsa · modsecurity · debian · bookworm; dsa · modsecurity · debian · 12

    • 3.0.9-1+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 3.0.6-1

      dsa · modsecurity · debian · bookworm; dsa · modsecurity · debian · 12

  • Source package: [modsecurity]

    Details (2)
    • 3.0.9-1+deb12u2 · amd64 · bookworm

      Fixed · Fixed: 3.0.6-1

      dsa · modsecurity · debian · bookworm; dsa · modsecurity · debian · 12

    • 3.0.9-1+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 3.0.6-1

      dsa · modsecurity · debian · bookworm; dsa · modsecurity · debian · 12

[Debian 13 (Trixie)]

  • Source package: [modsecurity-apache]

    Details (2)
    • 2.9.11-1+deb13u1 · amd64 · trixie

      Fixed · Fixed: 2.9.5-1

      dsa · modsecurity-apache · debian · 13

    • 2.9.11-1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 2.9.5-1

      dsa · modsecurity-apache · debian · 13

  • Source package: [modsecurity]

    Details (2)
    • 3.0.14-1+deb13u1 · amd64 · trixie

      Fixed · Fixed: 3.0.6-1

      dsa · modsecurity · debian · 13

    • 3.0.14-1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 3.0.6-1

      dsa · modsecurity · debian · 13

  • Source package: [modsecurity]

    Details (2)
    • 3.0.14-1+deb13u1 · amd64 · trixie

      Fixed · Fixed: 3.0.6-1

      dsa · modsecurity · debian · 13

    • 3.0.14-1+deb13u1 · arm64 · trixie

      Fixed · Fixed: 3.0.6-1

      dsa · modsecurity · debian · 13

Observed:

References