p PatchFirst

CVE-2021-42717

CVE-2021-42717

CVSS 7.5 · High · EPSS 3.3% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="modsecurity"'
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="modsecurity-apache"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • openSUSE-SU-2023:0269-1 · openSUSE Leap 15.4, SUSE Package Hub 15 SP4 ·
  • openSUSE-SU-2023:0257-1 · openSUSE Leap 15.5, SUSE Package Hub 15 SP5 ·
  • USN-6370-1 · Ubuntu 20.04 LTS, Ubuntu Pro 14.04 LTS, Ubuntu Pro 16.04 LTS, Ubuntu Pro 18.04 LTS, Ubuntu Pro 22.04 LTS ·
  • DLA-3031-1 · Debian 9 ·
  • DSA-5023-1 · Debian 10, Debian 11 ·

Stack: system

Affected products and versions

  • n/a

    Versions
    • n/a: Affected

    No fix published

  • modsecurity Debian 12

    Affected ranges
    • ECOSYSTEM: < 3.0.6-1

    Update to 3.0.6-1

  • modsecurity Debian 13

    Affected ranges
    • ECOSYSTEM: < 3.0.6-1

    Update to 3.0.6-1

  • modsecurity Debian 14

    Affected ranges
    • ECOSYSTEM: < 3.0.6-1

    Update to 3.0.6-1

  • modsecurity-apache Debian 12

    Affected ranges
    • ECOSYSTEM: < 2.9.5-1

    Update to 2.9.5-1

  • modsecurity-apache Debian 13

    Affected ranges
    • ECOSYSTEM: < 2.9.5-1

    Update to 2.9.5-1

  • modsecurity-apache Debian 14

    Affected ranges
    • ECOSYSTEM: < 2.9.5-1

    Update to 2.9.5-1

  • modsecurity-apache Ubuntu Pro 16.04 LTS

    Versions
    • 2.9.0-1
    Affected ranges
    • ECOSYSTEM: < 2.9.0-1ubuntu0.1~esm1

    Update to 2.9.0-1ubuntu0.1~esm1

  • modsecurity-apache Ubuntu Pro 18.04 LTS

    Versions
    • 2.9.1-3
    • 2.9.2-1
    Affected ranges
    • ECOSYSTEM: < 2.9.2-1ubuntu0.1~esm1

    Update to 2.9.2-1ubuntu0.1~esm1

  • modsecurity-apache Ubuntu 20.04 LTS

    Versions
    • 2.9.3-1
    Affected ranges
    • ECOSYSTEM: < 2.9.3-1ubuntu0.1

    Update to 2.9.3-1ubuntu0.1

  • modsecurity Ubuntu 20.04 LTS

    Versions
    • 3.0.3-1
    • 3.0.4-1
    • 3.0.4-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • modsecurity Ubuntu 22.04 LTS

    Versions
    • 3.0.4-2
    • 3.0.6-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • modsecurity Ubuntu 24.04 LTS

    Versions
    • 3.0.10-1
    • 3.0.11-1
    • 3.0.12-1
    • 3.0.12-1.1build1
    • 3.0.12-1.1build2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • modsecurity Ubuntu 25.10

    Versions
    • 3.0.13-1
    • 3.0.14-1
    • 3.0.14-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • modsecurity Ubuntu 26.10

    Versions
    • 3.0.14-1build2
    • 3.0.15-1
    • 3.0.16-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • modsecurity Ubuntu 26.04 LTS

    Versions
    • 3.0.14-1build1
    • 3.0.14-1build2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →