Denial of Service Vulnerability in ModSecurity Apache Package

modsecurity-apache Updated 02 Oct 2025

Summary

21/05/2025
N/A
Yes i
Unrated
Not published

CVE-2025-47947: ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. Affects modsecurity-apache across 2 version ranges.

< 2.9.3-3+deb11u3 < a217cb1056d9cb032c9f375d41e051723f8c23e8

Fixed in 2.9.3-3+deb11u3. 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 that provides protection for web applications by filtering and monitoring HTTP traffic. It is compatible with major web servers like Apache, IIS, and Nginx. The package is widely used to enhance security by implementing rules that can detect and prevent various types of attacks. However, certain versions of ModSecurity are vulnerable to a denial of service attack when handling specific content types.

Vulnerability Detail

The vulnerability, identified as CVE-2025-47947, affects ModSecurity versions up to and including 2.9.8. It arises when the payload's content type is 'application/json' and at least one rule utilizes the 'sanitiseMatchedBytes' action. This combination can lead to a denial of service, causing the application to become unresponsive. The issue is significant as it can disrupt service availability, impacting users and potentially leading to data loss or other security concerns.

How To Fix

Minimum fixed version

2.9.3-3+deb11u3

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

Currently, there are no known workarounds for this vulnerability. The best course of action is to apply the patch by updating to the latest version of ModSecurity.

Conclusion

The CVE-2025-47947 vulnerability in ModSecurity poses a significant risk of denial of service under specific conditions. Users are strongly advised to update to version 2.9.9 or later to ensure their applications remain secure. Regular monitoring for vulnerabilities using tools like Vulert can help maintain application security.

See every vulnerability recorded for modsecurity-apache →

Share this vulnerability

FAQ

CVE-2025-47947 is a vulnerability in ModSecurity that can lead to denial of service when handling JSON payloads with specific rules.

Versions up to and including 2.9.8 of ModSecurity are vulnerable to this issue.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Yes, a patch is available and is expected to be included in version 2.9.9 of ModSecurity.

Currently, there are no workarounds available, so it is crucial to plan for an update as soon as possible to mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for modsecurity-apache.

How To Fix

Minimum fixed version

2.9.3-3+deb11u3

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