Skip to content
OpenAdvisories
High · 7.5 CVE-2023-40586 EUVD-2023-1768GHSA-c2pj-v37r-2p6hGO-2023-1874

go package github.com/corazawaf/coraza is vulnerable to denial of service

Published Aug 25, 2023 · Updated Oct 2, 2024 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
corazawaf coraza < 3.0.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/corazawaf/coraza/v2 >= 2.0.0, <= 2.0.1 — GHSA-c2pj-v37r-2p6h
Go github.com/corazawaf/coraza/v2 all versions — GO-2023-1874
Go github.com/corazawaf/coraza/v3 >= 3.0.0, < 3.0.1 3.0.1 GHSA-c2pj-v37r-2p6h
Go github.com/corazawaf/coraza/v3 < 3.0.1 3.0.1 GO-2023-1874

References