CVE-2025-47947 Details
Description
ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. Versions up to and including 2.9.8 are vulnerable to denial of service in one special case (in stable released versions): when the payload's content type is `application/json`, and there is at least one rule which does a `sanitiseMatchedBytes` action. A patch is available at pull request 3389 and expected to be part of version 2.9.9. No known workarounds are available.
A denial-of-service vulnerability has been identified in ModSecurity versions through 2.9.8. The issue arises in the Apache2 module when the payload's content type is 'application/json' and at least one rule applies a 'sanitiseMatchedBytes' action. This combination can lead to excessive memory consumption, as the 'sanitiseMatchedBytes' action is applied repeatedly to each variable in the JSON payload, potentially causing an out-of-memory error after a few requests.
Users can update to ModSecurity version 2.9.9, which includes a patch for this vulnerability. The update can be obtained from the ModSecurity GitHub repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-859r-vvv8-rm8r | CISA-ADP | ExploitVendor Advisory |
| https://github.com/owasp-modsecurity/ModSecurity/pull/3389 | [email protected] | Issue TrackingPatch |
| https://github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-859r-vvv8-rm8r | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1050 | Excessive Platform Resource Consumption within a Loop | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| trustwave modsecurity | < 2.9.9 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 20, 2025 | Initial Analysis | [email protected] |
| May 22, 2025 | CVE Modified | CISA-ADP |
| May 21, 2025 | New CVE Received | [email protected] |