UBUNTU-CVE-2021-42717

Source
https://ubuntu.com/security/CVE-2021-42717
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-42717.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2021-42717
Related
Published
2021-12-07T22:15:00Z
Modified
2024-10-15T14:08:28Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:16.04:LTS / modsecurity-apache

Package

Name
modsecurity-apache
Purl
pkg:deb/ubuntu/modsecurity-apache?arch=src?distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.0-1ubuntu0.1~esm1

Affected versions

2.*

2.9.0-1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.9.0-1ubuntu0.1~esm1",
            "binary_name": "libapache2-mod-security2"
        },
        {
            "binary_version": "2.9.0-1ubuntu0.1~esm1",
            "binary_name": "libapache2-mod-security2-dbgsym"
        },
        {
            "binary_version": "2.9.0-1ubuntu0.1~esm1",
            "binary_name": "libapache2-modsecurity"
        }
    ]
}

Ubuntu:Pro:18.04:LTS / modsecurity-apache

Package

Name
modsecurity-apache
Purl
pkg:deb/ubuntu/modsecurity-apache?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.2-1ubuntu0.1~esm1

Affected versions

2.*

2.9.1-3
2.9.2-1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.9.2-1ubuntu0.1~esm1",
            "binary_name": "libapache2-mod-security2"
        },
        {
            "binary_version": "2.9.2-1ubuntu0.1~esm1",
            "binary_name": "libapache2-mod-security2-dbgsym"
        }
    ]
}

Ubuntu:20.04:LTS / modsecurity

Package

Name
modsecurity
Purl
pkg:deb/ubuntu/modsecurity?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.0.3-1
3.0.4-1
3.0.4-1build1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / modsecurity-apache

Package

Name
modsecurity-apache
Purl
pkg:deb/ubuntu/modsecurity-apache?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.3-1ubuntu0.1

Affected versions

2.*

2.9.3-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.9.3-1ubuntu0.1",
            "binary_name": "libapache2-mod-security2"
        },
        {
            "binary_version": "2.9.3-1ubuntu0.1",
            "binary_name": "libapache2-mod-security2-dbgsym"
        }
    ]
}

Ubuntu:22.04:LTS / modsecurity

Package

Name
modsecurity
Purl
pkg:deb/ubuntu/modsecurity?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.0.4-2
3.0.6-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / modsecurity-apache

Package

Name
modsecurity-apache
Purl
pkg:deb/ubuntu/modsecurity-apache?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.5-1

Affected versions

2.*

2.9.3-3

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.9.5-1",
            "binary_name": "libapache2-mod-security2"
        },
        {
            "binary_version": "2.9.5-1",
            "binary_name": "libapache2-mod-security2-dbgsym"
        }
    ]
}

Ubuntu:24.10 / modsecurity

Package

Name
modsecurity
Purl
pkg:deb/ubuntu/modsecurity?arch=src?distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.0.12-1.1build2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / modsecurity

Package

Name
modsecurity
Purl
pkg:deb/ubuntu/modsecurity?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.0.10-1
3.0.11-1
3.0.12-1
3.0.12-1.1build1
3.0.12-1.1build2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / modsecurity-apache

Package

Name
modsecurity-apache
Purl
pkg:deb/ubuntu/modsecurity-apache?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.9.7-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.9.7-1",
            "binary_name": "libapache2-mod-security2"
        },
        {
            "binary_version": "2.9.7-1",
            "binary_name": "libapache2-mod-security2-dbgsym"
        }
    ]
}