Vulnerability · Published May 21, 2025 · Assigned by GitHub_M
CVE-2025-47947ModSecurity Has Possible DoS Vulnerability
High 7.5
In plain English
A high-severity security flaw in ModSecurity from owasp-modsecurity. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | mod_security | 2.9.6-2.el8_10 | ALSA-2025:8844 |
| AlmaLinux:9 | mod_security | 2.9.6-2.el9_6 | ALSA-2025:8837 |
| AlmaLinux:8 | mod_security-mlogc | 2.9.6-2.el8_10 | ALSA-2025:8844 |
| AlmaLinux:9 | mod_security-mlogc | 2.9.6-2.el9_6 | ALSA-2025:8837 |
| Debian:12 | modsecurity-apache | 2.9.7-1+deb12u1 | DSA-5940-1 |
| Debian:12 | modsecurity-apache | 2.9.7-1+deb12u1 | DEBIAN-CVE-2025-47947 |
| Debian:13 | modsecurity-apache | 2.9.9-1 | DEBIAN-CVE-2025-47947 |
| Debian:14 | modsecurity-apache | 2.9.9-1 | DEBIAN-CVE-2025-47947 |
| Rocky Linux:8 | mod_security | 0:2.9.6-2.el8_10 | RLSA-2025:8844 |
| Rocky Linux:9 | mod_security | 0:2.9.6-2.el9_6 | RLSA-2025:8837 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| owasp-modsecurity | ModSecurity | <= 2.9.8 |
Weakness: CWE-1050 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/owasp-modsecurity/ModSecurity/security/advisories/GHSA-859r-vvv8-rm8r x_refsource_CONFIRM
- https://github.com/owasp-modsecurity/ModSecurity/pull/3389 x_refsource_MISC