p PatchFirst

CVE-2022-39956

CVE-2022-39956 · Partial rule set bypass in OWASP ModSecurity Core Rule Set for HTTP multipart requests using character encoding in the Content-Type or Content-Transfer-Encoding header

CVSS 7.3 · High · EPSS 1.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-crs"'

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.

The OWASP ModSecurity Core Rule Set (CRS) is affected by a partial rule set bypass for HTTP multipart requests by submitting a payload that uses a character encoding scheme via the Content-Type or the deprecated Content-Transfer-Encoding multipart MIME header fields that will not be decoded and inspected by the web application firewall engine and the rule set. The multipart payload will therefore bypass detection. A vulnerable backend that supports these encoding schemes can potentially be exploited. The legacy CRS versions 3.0.x and 3.1.x are affected, as well as the currently supported versions 3.2.1 and 3.3.2. Integrators and users are advised upgrade to 3.2.2 and 3.3.3 respectively. The mitigation against these vulnerabilities depends on the installation of the latest ModSecurity version (v2.9.6 / v3.0.8).

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • modsecurity core rule set

    Versions
    • 3.0.x: Affected
    • 3.1.x: Affected
    • ≥ unspecified, ≤ 3.2.1: Affected (custom)
    • ≥ unspecified, ≤ 3.3.2: Affected (custom)

    No fix published

  • modsecurity-crs Debian 12

    Affected ranges
    • ECOSYSTEM: < 3.3.4-1

    Update to 3.3.4-1

  • modsecurity-crs Debian 13

    Affected ranges
    • ECOSYSTEM: < 3.3.4-1

    Update to 3.3.4-1

  • modsecurity-crs Debian 14

    Affected ranges
    • ECOSYSTEM: < 3.3.4-1

    Update to 3.3.4-1

  • modsecurity-crs Ubuntu 16.04 LTS

    Versions
    • 2.2.9-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • modsecurity-crs Ubuntu 18.04 LTS

    Versions
    • 3.0.0-3
    • 3.0.2-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • modsecurity-crs Ubuntu 20.04 LTS

    Versions
    • 3.1.1-1
    • 3.2.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • modsecurity-crs Ubuntu 22.04 LTS

    Versions
    • 3.3.0-1
    • 3.3.2-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • modsecurity-crs Ubuntu 25.10

    Versions
    • 3.3.7-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →