CVE-2025-48866: ModSecurity has possible DoS vulnerability in sanitiseArg action

Published Jun 2, 2025
·
Updated

ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. Versions prior to 2.9.10 contain a denial of service vulnerability similar to GHSA-859r-vvv8-rm8r/CVE-2025-47947. The sanitiseArg (and sanitizeArg - this is the same action but an alias) is vulnerable to adding an excessive number of arguments, thereby leading to denial of service. Version 2.9.10 fixes the issue. As a workaround, avoid using rules that contain the sanitiseArg (or sanitizeArg) action.

Affected Software

9 affected componentsFixes available
ModSecurity modsecurity<2.9.10
OWASP Modsecurity<2.9.10
ubuntu/modsecurity-apache<2.7.7-2ubuntu0.1~esm2
2.7.7-2ubuntu0.1~esm2
ubuntu/modsecurity-apache<2.9.0-1ubuntu0.1~esm2
2.9.0-1ubuntu0.1~esm2
ubuntu/modsecurity-apache<2.9.2-1ubuntu0.1~esm2
2.9.2-1ubuntu0.1~esm2
ubuntu/modsecurity-apache<2.9.3-1ubuntu0.1+esm1
2.9.3-1ubuntu0.1+esm1
ubuntu/modsecurity-apache<2.9.5-1ubuntu0.1~esm2
2.9.5-1ubuntu0.1~esm2
ubuntu/modsecurity-apache<2.9.7-1ubuntu0.24.04.1~esm1
2.9.7-1ubuntu0.24.04.1~esm1
ubuntu/modsecurity-apache*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/modsecurity-apache to a version that resolves this vulnerability.

    Fixed in 2.7.7-2ubuntu0.1~esm2
  2. Upgrade

    Upgrade ubuntu/modsecurity-apache to a version that resolves this vulnerability.

    Fixed in 2.9.0-1ubuntu0.1~esm2
  3. Upgrade

    Upgrade ubuntu/modsecurity-apache to a version that resolves this vulnerability.

    Fixed in 2.9.2-1ubuntu0.1~esm2
  4. Upgrade

    Upgrade ubuntu/modsecurity-apache to a version that resolves this vulnerability.

    Fixed in 2.9.3-1ubuntu0.1+esm1
  5. Upgrade

    Upgrade ubuntu/modsecurity-apache to a version that resolves this vulnerability.

    Fixed in 2.9.5-1ubuntu0.1~esm2
  6. Upgrade

    Upgrade ubuntu/modsecurity-apache to a version that resolves this vulnerability.

    Fixed in 2.9.7-1ubuntu0.24.04.1~esm1
  7. Upgrade

    Upgrade ModSecurity to a version that resolves this vulnerability.

    Fixed in 2.9.10
  8. Configuration

    Avoid using rules that contain the sanitiseArg or sanitizeArg action.

    ModSecurity sanitiseArg/sanitizeArg action = disabled

Event History

Jun 2, 2025
CVE Published
via MITRE·03:46 PM
Data Sourced
via MITRE·03:46 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·04:01 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·04:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness
Jun 9, 2025
News Published
via The Hacker News·11:20 AM
Jun 10, 2025
Event
via FIRST·12:00 AM
Jul 2, 2025
Data Sourced
via NVD·06:11 PM
RemedyAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-48866?

CVE-2025-48866 has been identified as a denial of service vulnerability.

2

How do I fix CVE-2025-48866?

To remediate CVE-2025-48866, upgrade to ModSecurity version 2.9.10 or later.

3

Which versions of ModSecurity are affected by CVE-2025-48866?

ModSecurity versions prior to 2.9.10 are vulnerable to CVE-2025-48866.

4

What is the nature of the vulnerability in CVE-2025-48866?

CVE-2025-48866 involves a denial of service vulnerability related to the sanitisation functions in ModSecurity.

5

Can CVE-2025-48866 be exploited remotely?

Yes, CVE-2025-48866 can potentially be exploited by an attacker remotely to trigger a denial of service condition.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203