CVEfocus › CVE database › CVE-2025-52891

CVE-2025-52891ModSecurity empty XML tag causes segmentation fault

CVSS 6.5 MediumEPSS 0.4% (higher than 33% of CVEs)Published 2025-07-02Updated 2025-07-02Assigner: GitHub_M

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.

CWE-20

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
2Fix pending
3Under investigation
1Will not fix
6Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10modsecurityFix pendingUBUNTU-CVE-2025-52891
Ubuntu 26.04modsecurityUnder investigationUBUNTU-CVE-2025-52891
Ubuntu 25.10modsecurityWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-52891
Ubuntu 24.04modsecurityUnder investigationUBUNTU-CVE-2025-52891
Ubuntu 22.04modsecurityUnder investigationUBUNTU-CVE-2025-52891
Ubuntu 20.04modsecurityFix pendingUBUNTU-CVE-2025-52891
Debian 14modsecurity-apacheFixed2.9.11-1DEBIAN-CVE-2025-52891
Debian 13modsecurity-apacheFixed2.9.11-1DEBIAN-CVE-2025-52891
Red Hat Enterprise Linux 9mod_securityNot affected
Red Hat Enterprise Linux 9mod_security-mlogcNot affected
Red Hat Enterprise Linux 8mod_securityNot affected
Red Hat Enterprise Linux 8mod_security-mlogcNot affected
Red Hat Enterprise Linux 7mod_securityNot affected
Red Hat Enterprise Linux 7mod_security-mlogcNot affected

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.