Debian DSA-5023-1 : modsecurity-apache - security update

high Nessus Plugin ID 156186

Synopsis

The remote Debian host is missing a security-related update.

Description

The remote Debian 10 / 11 host has a package installed that is affected by a vulnerability as referenced in the dsa-5023 advisory.

It was discovered that modsecurity-apache, an Apache module to tighten the Web application security, does not properly handles excessively nested JSON objects, which could result in denial of service. The update introduces a new SecRequestBodyJsonDepthLimit option to limit the maximum request body JSON parsing depth which ModSecurity will accept (defaults to 10000). For the oldstable distribution (buster), this problem has been fixed in version 2.9.3-1+deb10u1. For the stable distribution (bullseye), this problem has been fixed in version 2.9.3-3+deb11u1. We recommend that you upgrade your modsecurity-apache packages. For the detailed security status of modsecurity-apache please refer to its security tracker page at:
https://security-tracker.debian.org/tracker/modsecurity-apache

Tenable has extracted the preceding description block directly from the Debian security advisory.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade the modsecurity-apache packages.

For the stable distribution (bullseye), this problem has been fixed in version 2.9.3-3+deb11u1.

See Also

http://www.nessus.org/u?b86f5745

https://www.debian.org/security/2021/dsa-5023

https://security-tracker.debian.org/tracker/CVE-2021-42717

https://packages.debian.org/source/buster/modsecurity-apache

https://packages.debian.org/source/bullseye/modsecurity-apache

Plugin Details

Severity: High

ID: 156186

File Name: debian_DSA-5023.nasl

Version: 1.4

Type: local

Agent: unix

Published: 12/19/2021

Updated: 1/24/2025

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P

CVSS Score Source: CVE-2021-42717

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:10.0, cpe:/o:debian:debian_linux:11.0, p-cpe:/a:debian:debian_linux:libapache2-mod-security2

Required KB Items: Host/Debian/dpkg-l, Host/local_checks_enabled, Host/Debian/release

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 12/18/2021

Vulnerability Publication Date: 12/7/2021

Reference Information

CVE: CVE-2021-42717