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: 8.2 [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]
CVE-ID: CVE-2025-52891
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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. 


Affected software

ModSecurity
EasyApache
openEuler
mod_security-debugsource
mod_security-debuginfo
mod_security

How to mitigate CVE-2025-52891

Install updates from vendor's website.

ModSecurity - update to 2.9.11
EasyApache - update to 4 25-22
mod_security-debugsource - update to 2.9.11-1
mod_security-debuginfo - update to 2.9.11-1
mod_security - update to 2.9.11-1

External References

Related Security Bulletins