CVE-2025-52891
ModSecurity vulnerability analysis and mitigation

Overview

ModSecurity, an open source cross-platform web application firewall (WAF) engine for Apache, IIS and Nginx, contains a vulnerability (CVE-2025-52891) affecting versions 2.9.8 to before 2.9.11. The vulnerability was discovered by Andrew Howe (@RedXanadu) and disclosed in July 2025. The issue occurs when SecParseXmlIntoArgs is set to 'On' or 'OnlyArgs' and the request type is application/xml containing at least one empty XML tag (GITHUB ADVISORY).

Technical details

The vulnerability stems from improper input validation when processing empty XML tags. When an empty XML node is encountered, the software attempts to use the strlen() function on a null value, resulting in a segmentation fault. The issue has been assigned a CVSS v3.1 base score of 6.5 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H. The vulnerability requires network access and user interaction but no privileges for exploitation (GBHACKERS).

Impact

The primary impact of this vulnerability is on system availability. When successfully exploited, it can cause a segmentation fault leading to a denial-of-service (DoS) condition. The crash of the WAF process could potentially expose the protected web application to further attacks. The vulnerability does not affect confidentiality or integrity of the system (GITHUB ADVISORY).

Mitigation and workarounds

The vulnerability has been patched in ModSecurity version 2.9.11. For systems that cannot immediately update, a workaround is available by setting SecParseXmlIntoArgs to 'Off'. The vulnerability only affects mod_security2 and does not impact the newer libmodsecurity3 library (GITHUB ADVISORY, GBHACKERS).

Additional resources


SourceThis report was generated using AI

Related ModSecurity vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-27110HIGH7.9
  • ModSecurityModSecurity
  • libmodsecurity-static
NoYesFeb 25, 2025
CVE-2025-48866HIGH7.5
  • Rocky LinuxRocky Linux
  • cpe:2.3:a:owasp:modsecurity
NoYesJun 02, 2025
CVE-2025-47947HIGH7.5
  • Rocky LinuxRocky Linux
  • mod_security-debugsource
NoYesMay 21, 2025
CVE-2025-54571MEDIUM6.9
  • ModSecurityModSecurity
  • mod_security
NoYesAug 06, 2025
CVE-2025-52891MEDIUM6.5
  • ModSecurityModSecurity
  • cpe:2.3:a:owasp:modsecurity
NoYesJul 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management