CVEfocus › CVE database › CVE-2025-54571

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

CVSS 6.9 MediumEPSS 0.4% (higher than 29% of CVEs)Published 2025-08-05Updated 2025-11-03Assigner: GitHub_M

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.

CWE-252

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
8Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10modsecurityFix pendingUBUNTU-CVE-2025-54571
Ubuntu 26.04modsecurityUnder investigationUBUNTU-CVE-2025-54571
Ubuntu 25.10modsecurityWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-54571
Ubuntu 24.04modsecurityUnder investigationUBUNTU-CVE-2025-54571
Ubuntu 22.04modsecurityUnder investigationUBUNTU-CVE-2025-54571
Ubuntu 20.04modsecurityFix pendingUBUNTU-CVE-2025-54571
Debian 14modsecurity-apacheFixed2.9.12-2DEBIAN-CVE-2025-54571
Debian 13modsecurity-apacheFixed2.9.11-1+deb13u1DEBIAN-CVE-2025-54571
Debian 12modsecurity-apacheFixed2.9.7-1+deb12u2DEBIAN-CVE-2025-54571
Red Hat Enterprise Linux 9mod_securityFix pending
Fix deferred
Red Hat Enterprise Linux 9mod_security-mlogcFix pending
Fix deferred
Red Hat Enterprise Linux 8mod_securityFix pending
Fix deferred
Red Hat Enterprise Linux 8mod_security-mlogcFix pending
Fix deferred
Red Hat Enterprise Linux 7mod_securityFix pending
Fix deferred
Red Hat Enterprise Linux 7mod_security-mlogcFix pending
Fix deferred

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.