CVE-2025-54571ModSecurity's Insufficient Return Value Handling can Lead to XSS and Source Code…
ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. In versions 2.9.11 and below, an attacker can override the HTTP response’s Content-Type, which could lead to several issues depending on the HTTP scenario. For example, we have demonstrated the potential for XSS and arbitrary script source code disclosure in the latest version of mod_security2. This issue is fixed in version 2.9.12.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Red Hat, Ubuntu have 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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | modsecurity | Fix pending | UBUNTU-CVE-2025-54571 | |
| Ubuntu 26.04 | modsecurity | Under investigation | UBUNTU-CVE-2025-54571 | |
| Ubuntu 25.10 | modsecurity | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-54571 | |
| Ubuntu 24.04 | modsecurity | Under investigation | UBUNTU-CVE-2025-54571 | |
| Ubuntu 22.04 | modsecurity | Under investigation | UBUNTU-CVE-2025-54571 | |
| Ubuntu 20.04 | modsecurity | Fix pending | UBUNTU-CVE-2025-54571 | |
| Debian 14 | modsecurity-apache | Fixed | 2.9.12-2 | DEBIAN-CVE-2025-54571 |
| Debian 13 | modsecurity-apache | Fixed | 2.9.11-1+deb13u1 | DEBIAN-CVE-2025-54571 |
| Debian 12 | modsecurity-apache | Fixed | 2.9.7-1+deb12u2 | DEBIAN-CVE-2025-54571 |
| Red Hat Enterprise Linux 9 | mod_security | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | mod_security-mlogc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mod_security | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mod_security-mlogc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | mod_security | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | mod_security-mlogc | Fix pending Fix deferred |
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.
- owasp-modsecurity ModSecurity: affected: < 2.9.12
References
- https://github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-cg44-9m43-3f9v
- https://github.com/owasp-modsecurity/ModSecurity/issues/2514
- https://github.com/owasp-modsecurity/ModSecurity/commit/6d7e8eb18f2d7d368fb8e29516fcdeaeb8d349b8
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.