CVE-2023-40586: Coraza has potential denial of service vulnerability
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.45818%
CWE
Published
6/26/2023
Updated
11/10/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/corazawaf/coraza/v3 | go | >= 3.0.0, < 3.0.1 | 3.0.1 |
| github.com/corazawaf/coraza/v2 | go | >= 2.0.0, <= 2.0.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the error handling in multipartBodyProcessor.ProcessRequest where log.Fatalf was used to handle mime.ParseMediaType errors. The commit diff shows this was replaced with proper error return in the fix (24af0c8). log.Fatalf terminates the process via os.Exit (per Go's log package), making any application using this code vulnerable to crash on malicious inputs. The PoC demonstrates this by triggering a duplicate parameter error in Content-Type parsing.