go package github.com/corazawaf/coraza is vulnerable to denial of service
corazawaf coraza
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/corazawaf/coraza/v3 Go |
|
|
| github.com/corazawaf/coraza/v2 Go |
| No fix yet |
corazawaf coraza
| Product | Affected | Fixed in |
|---|---|---|
| github.com/corazawaf/coraza/v3 Go |
|
|
| github.com/corazawaf/coraza/v2 Go |
| No fix yet |
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.
From the CVE record · GitHub_M
Applications using Coraza can crash when a crafted request triggers an error in `mime.ParseMediaType`, because Coraza uses `log.Fatalf`. An attacker can cause this crash by sending a malicious request; the input does not specify whether authentication is required.
Check applications using Go package github.com/corazawaf/coraza/v3 versions 3.0.0 through before 3.0.1, or github.com/corazawaf/coraza/v2 versions 2.0.0 through 2.0.1.