CVE-2025-54571
published medium CVSS 4.0 · 6.9ModSecurity's Insufficient Return Value Handling can Lead to XSS and Source Code Disclosure
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| owasp-modsecurity | — | ModSecurity< 2.9.12 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2981 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1157 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bullseye | modsecurity-apache | Advisory build | 2.9.3-3+deb11u5 | DLA-4294-1 |
| SUSE / openSUSE | SLE-12-SP5 | apache2-mod_security2x86_64 | Advisory build | 2.8.0-7.12.1 | SUSE-SU-2025:03423-1 |
| Amazon Linux | AL2 | mod_securityaarch64 | Listed in advisory | Not stated | ALAS2-2025-2981 |
| SUSE / openSUSE | SLE-15-SP6 | apache2-mod_security2aarch64 | Advisory build | 2.9.4-150400.3.12.1 | SUSE-SU-2025:03422-1 |
| SUSE / openSUSE | SLE-15-SP6 | apache2-mod_security2ppc64le | Advisory build | 2.9.4-150400.3.12.1 | SUSE-SU-2025:03422-1 |
Show 20 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP6 | apache2-mod_security2s390x | Advisory build | 2.9.4-150400.3.12.1 | SUSE-SU-2025:03422-1 |
| SUSE / openSUSE | SLE-15-SP6 | apache2-mod_security2x86_64 | Advisory build | 2.9.4-150400.3.12.1 | SUSE-SU-2025:03422-1 |
| SUSE / openSUSE | SLE-15-SP7 | apache2-mod_security2aarch64 | Advisory build | 2.9.4-150400.3.12.1 | SUSE-SU-2025:03422-1 |
| SUSE / openSUSE | SLE-15-SP7 | apache2-mod_security2ppc64le | Advisory build | 2.9.4-150400.3.12.1 | SUSE-SU-2025:03422-1 |
| SUSE / openSUSE | SLE-15-SP7 | apache2-mod_security2s390x | Advisory build | 2.9.4-150400.3.12.1 | SUSE-SU-2025:03422-1 |
| SUSE / openSUSE | SLE-15-SP7 | apache2-mod_security2x86_64 | Advisory build | 2.9.4-150400.3.12.1 | SUSE-SU-2025:03422-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | apache2-mod_security2aarch64 | Advisory build | 2.9.4-150400.3.12.1 | SUSE-SU-2025:03422-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | apache2-mod_security2ppc64le | Advisory build | 2.9.4-150400.3.12.1 | SUSE-SU-2025:03422-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | apache2-mod_security2s390x | Advisory build | 2.9.4-150400.3.12.1 | SUSE-SU-2025:03422-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | apache2-mod_security2x86_64 | Advisory build | 2.9.4-150400.3.12.1 | SUSE-SU-2025:03422-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache2-mod_security2aarch64 | Advisory build | 2.9.12-1.1 | OPENSUSE-SU-2025:15456-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache2-mod_security2ppc64le | Advisory build | 2.9.12-1.1 | OPENSUSE-SU-2025:15456-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache2-mod_security2s390x | Advisory build | 2.9.12-1.1 | OPENSUSE-SU-2025:15456-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache2-mod_security2x86_64 | Advisory build | 2.9.12-1.1 | OPENSUSE-SU-2025:15456-1 |
| Amazon Linux | AL2 | mod_securityi686 | Listed in advisory | Not stated | ALAS2-2025-2981 |
| Amazon Linux | AL2 | mod_securitysrc | Listed in advisory | Not stated | ALAS2-2025-2981 |
| Amazon Linux | AL2 | mod_securityx86_64 | Listed in advisory | Not stated | ALAS2-2025-2981 |
| Amazon Linux | AL2023 | mod_securityaarch64 | Listed in advisory | Not stated | ALAS2023-2025-1157 |
| Amazon Linux | AL2023 | mod_securitysrc | Listed in advisory | Not stated | ALAS2023-2025-1157 |
| Amazon Linux | AL2023 | mod_securityx86_64 | Listed in advisory | Not stated | ALAS2023-2025-1157 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| owasp-modsecurity | ModSecurity | < 2.9.12 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-252 CWE-252: Unchecked Return Value
References
4- https://github.com/owasp-modsecurity/ModSecurity/commit/6d7e8eb18f2d7d368fb8e29516fcdeaeb8d349b8
- https://github.com/owasp-modsecurity/ModSecurity/issues/2514
- https://github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-cg44-9m43-3f9v
- https://lists.debian.org/debian-lts-announce/2025/09/msg00008.html
Provider assertions
3GitHub_M · cna
ModSecurity's Insufficient Return Value Handling can Lead to XSS and Source Code Disclosure
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2fab33465225419484a800699c1d31bdb91c61b366e345f133f62abd9ceec397
- Ingested
- 23 Sep 2026, 08:53:04 UTC
- Source record
- Official CVE record