CVE-2023-40586 json
go package github.com/corazawaf/coraza is vulnerable to denial of service
published 2023-06-26 3 y ago modified 2026-06-17 4 mo ago also GHSA-c2pj-v37r-2p6h , GO-2023-1874 , EUVD-2023-1768
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/corazawaf/coraza/v3 3.0.1
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.72% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/corazawaf/coraza/v3 | >=3.0.0, <3.0.1 <3.0.1 |
3.0.1 |
| go | github.com/corazawaf/coraza/v2 | >=2.0.0, <=2.0.1 all versions |
no fix listed |
Affected products
- corazawaf coraza
Classification
- Weakness
-
- CWE-400 Uncontrolled Resource Consumption
References
-
github.com
/corazawaf/coraza/commit/a5239ba3ce839e14d9b4f9486e1b4a403dcade8c
web, patch
-
github.com
/corazawaf/coraza/commit/24af0c8cf4f10bab558740b595712be3b85493ec
web
-
github.com
/corazawaf/coraza/commit/e1b119b83e12c64f0957e00e8cad45a1b5f012f8
web
-
github.com
/corazawaf/coraza/security/advisories/GHSA-c2pj-v37r-2p6h
web, mitigation, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-40586
advisory
-
github.com
/corazawaf/coraza-caddy/issues/48
web
-
github.com
/corazawaf/coraza
package
-
github.com
/corazawaf/coraza/blob/82157f85f24c6107667bf0f686b71a72aafdf8a5/internal/bodyprocessors/multipart.go#L26-L29
web
-
github.com
/corazawaf/coraza/releases/tag/v3.0.1
web
-
github.com
/golang/go/blob/a031f4ef83edc132d5f49382bfef491161de2476/src/log/log.go#L288-L291
web
Sources
- CVE List CVE-2023-40586
- GitHub Advisory GHSA-c2pj-v37r-2p6h
- NVD CVE-2023-40586
- OSV GO-2023-1874
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.