Buffer overflow in ModSecurity - CVE-2025-52891

 

Buffer overflow in ModSecurity - CVE-2025-52891

Published: July 2, 2025 / Updated: July 2, 2025


Vulnerability identifier: #VU112103
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2025-52891
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Trustwave
Affected software:
ModSecurity

Detailed vulnerability description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a boundary error when processing XML data with an empty XML tag. A remote attacker can send specially crafted XML data to the web application protected with ModSecurity, trigger memory corruption and perform a denial of service (DoS) attack.

Note, the vulnerability affects installations with SecParseXmlIntoArgs set to "On" or "OnlyArgs", which is not the default configuration. 


How to mitigate CVE-2025-52891

Install updates from vendor's website.

Sources