p PatchFirst

CVE-2025-54571

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

CVSS 6.9 · Medium · EPSS 0.4% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="modsecurity-apache"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • SUSE-SU-2025:03423-1 · SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 ·
  • SUSE-SU-2025:03422-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Server Applications 15 SP6, SUSE Linux Enterprise Module for Server Applications 15 SP7 ·
  • DLA-4294-1 · Debian 11 ·
  • openSUSE-SU-2025:15456-1 · openSUSE Tumbleweed ·

Stack: system

Affected products and versions

  • modsecurity

    Versions
    • < 2.9.12: Affected

    No fix published

  • modsecurity-apache Debian 12

    Versions
    • 2.9.7-1
    • 2.9.7-1+deb12u1
    Affected ranges
    • ECOSYSTEM: < 2.9.7-1+deb12u2

    Update to 2.9.7-1+deb12u2

  • modsecurity-apache Debian 13

    Versions
    • 2.9.11-1
    Affected ranges
    • ECOSYSTEM: < 2.9.11-1+deb13u1

    Update to 2.9.11-1+deb13u1

  • modsecurity-apache Debian 14

    Versions
    • 2.9.11-1
    Affected ranges
    • ECOSYSTEM: < 2.9.12-2

    Update to 2.9.12-2

  • modsecurity Ubuntu 20.04 LTS

    Versions
    • 3.0.3-1
    • 3.0.4-1
    • 3.0.4-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • modsecurity Ubuntu 22.04 LTS

    Versions
    • 3.0.4-2
    • 3.0.6-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • modsecurity Ubuntu 24.04 LTS

    Versions
    • 3.0.10-1
    • 3.0.11-1
    • 3.0.12-1
    • 3.0.12-1.1build1
    • 3.0.12-1.1build2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • modsecurity Ubuntu 25.10

    Versions
    • 3.0.13-1
    • 3.0.14-1
    • 3.0.14-1build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • modsecurity Ubuntu 26.10

    Versions
    • 3.0.14-1build2
    • 3.0.15-1
    • 3.0.16-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • modsecurity Ubuntu 26.04 LTS

    Versions
    • 3.0.14-1build1
    • 3.0.14-1build2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →