# CVE-2025-54571: ModSecurity's Insufficient Return Value Handling can Lead to XSS and Source Code Disclosure

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-08-05 · Modified: 2025-11-03
- Aliases: SUSE-SU-2025:03422-1, SUSE-SU-2025:03423-1, UBUNTU-CVE-2025-54571, DEBIAN-CVE-2025-54571, DLA-4294-1, openSUSE-SU-2025:15456-1
- Record: https://cvemate.com/vulnerability/CVE-2025-54571 · JSON: https://cvemate.com/vulnerability/CVE-2025-54571/json

## Description

```text
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.
```

## Signals

- CVSS: 6.9 medium (v4.0, CVE.org) 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
- EPSS: 0.352%, percentile 30.792%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian modsecurity-apache (Debian): \< 2.9.3-3+deb11u5 \| \< 2.9.7-1+deb12u2 \| \< 2.9.11-1+deb13u1 \| \< 2.9.12-2
- ubuntu modsecurity (Ubuntu): All versions (No fix recorded)
- owasp-modsecurity modsecurity: \< 2.9.12
- owasp modsecurity: ≥ 2.0.0, \< 2.9.12
- opensuse apache2-mod\_security2&distro=openSUSE Leap 15.6 (openSUSE): \< 2.9.4-150400.3.12.1
- opensuse apache2-mod\_security2&distro=openSUSE Tumbleweed (openSUSE): \< 2.9.12-1.1
- suse apache2-mod\_security2&distro=SUSE Linux Enterprise Module for Server Applications 15 SP6 (SUSE Linux Enterprise): \< 2.9.4-150400.3.12.1
- suse apache2-mod\_security2&distro=SUSE Linux Enterprise Module for Server Applications 15 SP7 (SUSE Linux Enterprise): \< 2.9.4-150400.3.12.1
- suse apache2-mod\_security2&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 (SUSE Linux Enterprise): \< 2.8.0-7.12.1

## 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>
- <https://lists.debian.org/debian-lts-announce/2025/09/msg00008.html>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202503422-1/>
- <https://bugzilla.suse.com/1247674>
- <https://www.suse.com/security/cve/CVE-2025-54571>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202503423-1/>
- <https://ubuntu.com/security/CVE-2025-54571>
- <https://www.cve.org/CVERecord?id=CVE-2025-54571>
- <https://security-tracker.debian.org/tracker/CVE-2025-54571>

---

Data as of 2026-12-05T07:16:09.794Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
