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

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-08-05T23:39:40.712Z
- Modified: 2026-09-08T08:48:13.932Z
- Also known as: BIT-MODSECURITY-2025-54571, BIT-MODSECURITY2-2025-54571, GHSA-cg44-9m43-3f9v
- Weaknesses: CWE-79, CWE-252
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- owasp-modsecurity ModSecurity: < 2.9.12
- owasp modsecurity: from 2.0.0 before 2.9.12
- modsecurity (Bitnami): before 2.9.12
- modsecurity2 (Bitnami): before 2.9.12

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-cg44-9m43-3f9v> (exploit, advisory, vendor-advisory)
- <https://github.com/owasp-modsecurity/ModSecurity/issues/2514> (exploit, evidence, issue-tracking)
- <https://github.com/owasp-modsecurity/ModSecurity/commit/6d7e8eb18f2d7d368fb8e29516fcdeaeb8d349b8> (fix, patch)
- <https://lists.debian.org/debian-lts-announce/2025/09/msg00008.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54571> (web)

## Sources

- CVE List: [CVE-2025-54571](https://www.cve.org/CVERecord?id=CVE-2025-54571), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2025-54571](https://nvd.nist.gov/vuln/detail/CVE-2025-54571), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MODSECURITY-2025-54571](https://osv.dev/vulnerability/BIT-MODSECURITY-2025-54571), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-MODSECURITY2-2025-54571](https://osv.dev/vulnerability/BIT-MODSECURITY2-2025-54571), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-54571 · Whole record: https://cve.day/CVE-2025-54571.json · Rebuilt by cve.day 2026-11-25T22:59:02.073Z
