CVE Database›Document archive›CVE-2026-52747

CVE-2026-52747

ModSecurity: ModSecurity: Security rule bypass due to incorrect handling of line breaks in form data

Loading…

Severity

Moderate

Red Hat Product Security

5.8

CVSS 3.1

Review impact separately from score.

Published · July 11, 2026

Updated · July 15, 2026

Description

A flaw was found in ModSecurity, an open-source web application firewall (WAF). The multipart/form-data request body parser in libmodsecurity incorrectly handles embedded line breaks in non-file form-field values. This discrepancy between ModSecurity and backend applications, which preserve line breaks, can allow an attacker to bypass security rules. This bypass could lead to the execution of dangerous payloads that rely on line breaks, potentially resulting in a security compromise.

Statement

This issue is classified as Moderate severity primarily because: Conditions for Exploitation: Successful exploitation requires a specific scenario where the backend application preserves line breaks and is inherently vulnerable to a payload that utilizes those line breaks.

Additionally, the ModSecurity configuration must rely on rules inspecting the affected ARGS or ARGS_POST variables to allow the bypass to occur.

Impact Limitations: The vulnerability functions solely as a security control bypass, allowing potentially malicious requests to evade the Web Application Firewall (WAF). It does not directly cause privilege escalation, data corruption, or arbitrary code execution on the host system. The actual impact depends entirely on whether the backend application being protected is vulnerable to the bypassed requests.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

CVSS / CWE

CVSS 3.1 · 5.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N

CWE-179 · Incorrect Behavior Order: Early Validation