Skip to content
OpenAdvisories
Medium · 6.9 CVE-2025-54571 EUVD-2025-23662

ModSecurity's Insufficient Return Value Handling can Lead to XSS and Source Code Disclosure

Published Aug 5, 2025 · Updated Nov 3, 2025 · 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.

Affected products

VendorProductAffectedFixed
owasp-modsecurity ModSecurity < 2.9.12 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 modsecurity-apache 2.9.12-2 —
Debian 13 modsecurity-apache 2.9.11-1+deb13u1 —
Debian 12 modsecurity-apache 2.9.7-1+deb12u2 —
Debian 11 modsecurity-apache 2.9.3-3+deb11u5 DLA-4294-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 modsecurity No fix yet —
Ubuntu 26.04 LTS modsecurity No fix yet —
Ubuntu 25.10 modsecurity No fix yet —
Ubuntu 24.04 LTS modsecurity No fix yet —
Ubuntu 22.04 LTS modsecurity No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS modsecurity No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 apache2-mod_security2 2.9.4-150400.3.12.1 SUSE-SU-2025:03422-1
SLES 15 SP6 apache2-mod_security2 2.9.4-150400.3.12.1 SUSE-SU-2025:03422-1
SLES 12 SP5 apache2-mod_security2 2.8.0-7.12.1 SUSE-SU-2025:03423-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed apache2-mod_security2 2.9.12-1.1 openSUSE-SU-2025:15456-1
openSUSE Leap 15.6 apache2-mod_security2 2.9.4-150400.3.12.1 SUSE-SU-2025:03422-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 mod_security +1 2.9.12-1.amzn2023.0.1 ALAS2023-2025-1157
Amazon Linux 2 mod_security +1 2.9.12-1.amzn2.0.1 ALAS2-2025-2981

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 mod_security No fix yet —
Azure Linux 2 (CBL-Mariner) mod_security No fix yet —

Advisories 12

References