Vulnerability · Published Aug 5, 2025 · Assigned by GitHub_M
CVE-2025-54571ModSecurity's Insufficient Return Value Handling can Lead to XSS and Source Code Disclosure
Medium 6.9
In plain English
A medium-severity security flaw in ModSecurity from owasp-modsecurity. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 29% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | modsecurity-apache | 2.9.7-1+deb12u2 | DEBIAN-CVE-2025-54571 |
| Debian:13 | modsecurity-apache | 2.9.11-1+deb13u1 | DEBIAN-CVE-2025-54571 |
| Debian:14 | modsecurity-apache | 2.9.12-2 | DEBIAN-CVE-2025-54571 |
| Ubuntu:22.04:LTS | modsecurity | no fix listed | UBUNTU-CVE-2025-54571 |
| Ubuntu:24.04:LTS | modsecurity | no fix listed | UBUNTU-CVE-2025-54571 |
| Ubuntu:25.10 | modsecurity | no fix listed | UBUNTU-CVE-2025-54571 |
| Ubuntu:26.04:LTS | modsecurity | no fix listed | UBUNTU-CVE-2025-54571 |
| Ubuntu:26.10 | modsecurity | no fix listed | UBUNTU-CVE-2025-54571 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| owasp-modsecurity | ModSecurity | < 2.9.12 |
Weakness: CWE-252 · Vector: 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
References
- https://github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-cg44-9m43-3f9v x_refsource_CONFIRM
- https://github.com/owasp-modsecurity/ModSecurity/issues/2514 x_refsource_MISC
- https://github.com/owasp-modsecurity/ModSecurity/commit/6d7e8eb18f2d7d368fb8e29516fcdeaeb8d349b8 x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2025/09/msg00008.html