Denial of Service Vulnerability in ModSecurity-Apache: CVE-2025-48866

modsecurity-apache Updated 03 Oct 2025

Summary

02/06/2025
N/A
Yes i
High
7.5

UBUNTU-CVE-2025-48866: ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. Affects modsecurity-apache versions < 2.7.7-2ubuntu0.1~esm2. Fixed in 2.7.7-2ubuntu0.1~esm2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

ModSecurity is an open-source web application firewall (WAF) engine designed to protect web applications from various attacks. It is compatible with Apache, IIS, and Nginx, providing a robust layer of security by filtering and monitoring HTTP traffic. The package 'modsecurity-apache' is widely used to enhance the security posture of web applications by implementing rules that can detect and prevent attacks. However, certain versions of this package are vulnerable to a denial of service (DoS) attack due to improper handling of arguments in its sanitization functions.

Vulnerability Detail

The vulnerability identified as CVE-2025-48866 arises from the 'sanitiseArg' (and its alias 'sanitizeArg') action within ModSecurity. This vulnerability allows an attacker to send an excessive number of arguments, potentially leading to a denial of service condition. If exploited, this could result in the web application becoming unresponsive, affecting availability and user experience. The vulnerability is present in versions prior to 2.9.10, which means that any deployment using these versions is at risk.

How To Fix

Minimum fixed version

2.7.7-2ubuntu0.1~esm2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade modsecurity-apache

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid using rules that contain the 'sanitiseArg' or 'sanitizeArg' action until you can update to a secure version. This will help mitigate the risk of denial of service attacks while you prepare for the update.

Conclusion

In summary, CVE-2025-48866 presents a significant denial of service vulnerability in the ModSecurity-Apache package. It is crucial for users to update to version 2.9.10 or later to mitigate this risk. Until an update can be performed, users should avoid using specific sanitization actions as a temporary measure. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for modsecurity-apache →

Share this vulnerability

FAQ

CVE-2025-48866 is a denial of service vulnerability found in certain versions of the ModSecurity-Apache package, allowing attackers to exploit the sanitization functions.

You can use Vulert, which monitors open-source vulnerabilities in your software. By uploading your manifest file like package-lock.json, you can check for vulnerabilities in real-time.

Exploiting this vulnerability can lead to denial of service, making your web application unresponsive and affecting user access.

Yes, the vulnerability is fixed in version 2.9.10 and later of the modsecurity-apache package. It is recommended to upgrade to this version.

If immediate updating is not possible, avoid using the 'sanitiseArg' or 'sanitizeArg' actions in your ModSecurity rules as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for modsecurity-apache.

How To Fix

Minimum fixed version

2.7.7-2ubuntu0.1~esm2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade modsecurity-apache

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback