CVE-2025-47947
Alma Linux vulnerability analysis and mitigation

Overview

ModSecurity, an open source cross-platform web application firewall (WAF) engine for Apache, IIS and Nginx, contains a denial of service vulnerability (CVE-2025-47947) in versions up to and including 2.9.8. The vulnerability was discovered and reported by Simon Studer from Netnea on behalf of Swiss Post (GitHub Advisory).

Technical details

The vulnerability is triggered under specific conditions when processing JSON payloads with content type 'application/json' and when there is at least one rule using a 'sanitiseMatchedBytes' action. When processing JSON payloads, all variables are produced simultaneously and processed sequentially. If an operator matches, the sanitiseMatchedBytes action adds all processed JSON variables repeatedly, leading to exponential growth in memory usage. For example, a payload with 1,000 items would result in 1,000,000 variables to sanitize. The vulnerability has been assigned a CVSS v3.1 score of 7.5 (High) with vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (GitHub Advisory, NVD).

Impact

The vulnerability can lead to a denial of service condition through high memory consumption. A single request with a specially crafted JSON payload is sufficient to trigger the issue, causing the system to run out of memory after just a few requests (GitHub Advisory, Wiz).

Mitigation and workarounds

A patch is available in pull request 3389 and is expected to be included in version 2.9.9. No known workarounds are available for this vulnerability (NVD, GitHub PR).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management