ModSecurity, a widely used open-source web application firewall (WAF), has multiple security vulnerabilities that allow attackers to bypass detection with specially crafted HTTP requests.
These vulnerabilities, identified as CVE-2026-52761 and CVE-2026-52747, affect ModSecurity versions up to 3.0.15. They have been addressed in version 3.0.16. These issues reveal significant inconsistencies in input transformation and request parsing, potentially compromising WAF protections in real-world scenarios.
Transformation Bug Enables Architecture-Specific Rule Bypass
The first vulnerability (CVE-2026-52761), rated moderate severity, affects the t:utf8toUnicodet:utf8toUnicodet:utf8toUnicode transformation function used in ModSecurity rules.
The flaw occurs due to incorrect usage of the sizeof()sizeof()sizeof() operator on a pointer type (CWE-467), leading to inconsistent output generation depending on system architecture.
On 32-bit i386 systems, the pointer size is 4 bytes, whereas on 64-bit systems it is 8 bytes. Due to this mismatch, the transformation function produces truncated or incorrect Unicode representations on i386 platforms.
As a result, security rules relying on this transformation may fail to correctly interpret malicious payloads, allowing attackers to bypass detection mechanisms.
The root cause lies in the implementation of a snprintf()snprintf()snprintf() call where the buffer size is incorrectly calculated using the size of a pointer rather than the actual buffer.
While this issue does not affect 64-bit systems due to coincidental size alignment, it introduces a significant blind spot in 32-bit environments. Researchers from the Core Rule Set (CRS) team identified the issue during automated testing, prompting further investigation and disclosure.
Although no active exploits have been publicly reported, the vulnerability can be triggered remotely with low complexity and requires no authentication or user interaction. The recommended mitigation is to migrate away from i386 systems until patches are fully deployed.
Multipart Parser Flaw Allows Request Inspection Evasion
The second and more severe vulnerability (CVE-2026-52747) affects the multipart/form-data parser in libmodsecurity and carries a high severity rating. This flaw enables attackers to bypass WAF inspection by exploiting inconsistencies between how ModSecurity processes request bodies and how backend applications interpret them.
Specifically, the parser silently strips embedded line breaks (\r\n or \n) from non-file form-data fields before exposing them to WAF rules via ARGS and ARGS_POST variables.
For example, a payload such as “A\r\nB” is transformed into “AB” during inspection. At the same time, backend systems may still process it with line breaks intact.
This discrepancy creates a classic parser differential vulnerability, where the WAF and the backend application see different representations of the same input.
Attackers can leverage this behavior to craft payloads that evade detection rules dependent on line breaks, such as multi-line injection attacks or delimiter-based signatures.
The issue stems from improper string handling in the multipart parser, where reserved buffer content is overwritten instead of appended. Despite the malformed transformation, ModSecurity’s built-in strict validation checks, such as MULTIPART_STRICT_ERROR, remain unset, meaning the malicious input is neither flagged nor blocked.
A proof-of-concept demonstrated that both CRLF- and LF-based payloads are reduced to a single-line string without triggering any alerts, confirming the integrity impact of the vulnerability. Since ModSecurity is often deployed as a frontline defense layer, this flaw significantly weakens its ability to enforce security policies.
Security experts recommend upgrading to version 3.0.16 immediately, which includes fixes for both vulnerabilities. Additionally, organizations should review WAF rulesets, implement backend validation controls, and conduct regression testing for multipart parsing behaviors to ensure consistent input handling across security layers.
Interact with Cyber Threats in Windows, Linux, macOS VMs to Trigger Full Attack Chain - Analyse Malware & Phishing with ANY RUN
Torrance, California, USA, November 19th, 2026, CyberNewswire Criminal IP, a cyber threat intelligence platform developed…
Synology has announced two remotely exploitable vulnerabilities affecting DiskStation Manager (DSM) and BeeStation OS. Fixes…
Ubiquiti has disclosed seven vulnerabilities in its UniFi Access Application that could let attackers escalate…
BADBOX 3.0, an operation that turned inexpensive streaming boxes into hidden video ad players and…
N-able confirmed unauthorized access to one server in the cloud environment hosting Mail Assure and…
Hackers used ARTEX, a publicly available AI-powered tool designed to identify vulnerabilities, in a cyber…