CVE-2025-54571
MEDIUM6.1EPSS 0.30%ModSecurity's Insufficient Return Value Handling can Lead to XSS and Source Code Disclosure
Published: 8/6/2025Modified: 4/28/2026
Description
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.
Affected packages (4)
- Bitnami/modsecurityfrom 0, < 2.9.12
- Bitnami/modsecurity2from 0, < 2.9.12
- Debian/modsecurity-apachefrom 0, < 2.9.3-3+deb11u5
- Debian/modsecurity-apachefrom 0, < 2.9.3-3+deb11u5
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
References (6)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-54571
- WEBhttps://github.com/owasp-modsecurity/ModSecurity/commit/6d7e8eb18f2d7d368fb8e29516fcdeaeb8d349b8
- WEBhttps://github.com/owasp-modsecurity/ModSecurity/issues/2514
- WEBhttps://github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-cg44-9m43-3f9v
- WEBhttps://lists.debian.org/debian-lts-announce/2025/09/msg00008.html
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2025-54571