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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.7%top 45.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Gogithub.com/corazawaf/coraza/v2no fix listedGHSA-c2pj-v37r-2p6h
Gogithub.com/corazawaf/coraza/v2no fix listedGO-2023-1874
Gogithub.com/corazawaf/coraza/v33.0.1GHSA-c2pj-v37r-2p6h
Gogithub.com/corazawaf/coraza/v33.0.1GO-2023-1874

Affected products (as reported)

VendorProductVersions
corazawaf coraza < 3.0.1

Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References