Skip to content
OpenAdvisories
Medium · 6.5 CVE-2025-52891 EUVD-2025-19726

ModSecurity empty XML tag causes segmentation fault

Published Jul 2, 2025 · Updated Jul 2, 2025 · Assigned by GitHub_M

Description

ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. In versions 2.9.8 to before 2.9.11, an empty XML tag can cause a segmentation fault. If SecParseXmlIntoArgs is set to On or OnlyArgs, and the request type is application/xml, and at least one XML tag is empty (eg <foo></foo>), then a segmentation fault occurs. This issue has been patched in version 2.9.11. A workaround involves setting SecParseXmlIntoArgs to Off.

Affected products

VendorProductAffectedFixed
owasp-modsecurity ModSecurity >= 2.9.8, < 2.9.11 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 modsecurity-apache 2.9.11-1 —
Debian 13 modsecurity-apache 2.9.11-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 modsecurity No fix yet —
Ubuntu 26.04 LTS modsecurity No fix yet —
Ubuntu 25.10 modsecurity No fix yet —
Ubuntu 24.04 LTS modsecurity No fix yet —
Ubuntu 22.04 LTS modsecurity No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS modsecurity No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed apache2-mod_security2 2.9.11-1.1 openSUSE-SU-2025:15313-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 mod_security +1 2.9.11-1.amzn2023.0.1 ALAS2023-2025-1139
Amazon Linux 2 mod_security +1 2.9.11-1.amzn2.0.1 ALAS2-2025-2963

Advisories 4

References