CVE-2025-52891 ModSecurity empty XML tag causes segmentation fault
MediumCVSS 6.5
EPSS 0.39%
- Published
- Updated
- Exploit status
- No public exploit known
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
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/modsecurity-apache(Debian:13) | < 2.9.11-1 | 2.9.11-1 |
| debian/modsecurity-apache(Debian:14) | < 2.9.11-1 | 2.9.11-1 |
| owasp-modsecurity ModSecurity | = >= 2.9.8, < 2.9.11 | No fix listed |
| ubuntu/modsecurity(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/modsecurity(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/modsecurity(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/modsecurity(Ubuntu:26.10) | All versions | No fix listed |
References
- Debian Security Tracker CVE-2025-52891 vendor-advisory
- https://github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-gw9c-4wfm-vj3x
- https://github.com/owasp-modsecurity/ModSecurity/commit/ecd7b9736836eee391d25f35d5bd06a3ce35a45d
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking