Vulnerability · Published Aug 25, 2023 · Assigned by GitHub_M
CVE-2023-40586go package github.com/corazawaf/coraza is vulnerable to denial of service
High 7.5
In plain English
A high-severity uncontrolled resource consumption in coraza from corazawaf. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
OWASP Coraza WAF is a golang modsecurity compatible web application firewall library. Due to the misuse of `log.Fatalf`, the application using coraza crashed after receiving crafted requests from attackers. The application will immediately crash after receiving a malicious request that triggers an error in `mime.ParseMediaType`. This issue was patched in version 3.0.1.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/corazawaf/coraza/v2 | no fix listed | GHSA-c2pj-v37r-2p6h |
| Go | github.com/corazawaf/coraza/v2 | no fix listed | GO-2023-1874 |
| Go | github.com/corazawaf/coraza/v3 | 3.0.1 | GHSA-c2pj-v37r-2p6h |
| Go | github.com/corazawaf/coraza/v3 | 3.0.1 | GO-2023-1874 |
Affected products (as reported)
Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H