CVE-2023-40586 · GitHub_M
go package github.com/corazawaf/coraza is vulnerable to denial of service
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.
Published 2023-08-25, last changed 2026-06-17. Weakness: CWE-400.
How to fix
Upgrade to a fixed version: github.com/corazawaf/coraza/v3 3.0.1 (Go). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in corazawaf/coraza by a5239ba3ce, 24af0c8cf4, e1b119b83e. Functions changed by the fix: ProcessRequest. Regression tests: internal/bodyprocessors/multipart_test.go, bodyprocessors/multipart_test.go, transaction_test.go, internal/corazawaf/body_buffer_test.go. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2023-06-26 | Package advisory GHSA-c2pj-v37r-2p6h |
| 2023-07-05 | Package advisory GO-2023-1874 |
| 2023-08-25 | Published |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 0.89% |
| 2026-12-04 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-c2pj-v37r-2p6h | github.com/corazawaf/coraza/v3 (Go) | 3.0.1 |
| GHSA-c2pj-v37r-2p6h | github.com/corazawaf/coraza/v2 (Go) | no fix yet |
| GO-2023-1874 | github.com/corazawaf/coraza/v2 (Go) | no fix yet |
| GO-2023-1874 | github.com/corazawaf/coraza/v3 (Go) | 3.0.1 |
Also known as: GHSA-c2pj-v37r-2p6h, GO-2023-1874
Credited: rmb122 (other)
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-114101 | 2026-10-21 | 6.3 | Coraza before 3.8.1 Multipart filename* Charset Handling FILES Rule Bypass |
| CVE-2026-114100 | 2026-10-21 | 6.9 | Coraza from 3.0.4 before 3.8.1 Request Body Inspection Bypass via Content-Type |
| CVE-2026-114099 | 2026-10-21 | 6.9 | Coraza 3.0.0 before 3.8.1 WAF Bypass via JSON Key Collision |
| CVE-2026-41508 | 2026-10-12 | 5.8 | OWASP Coraza WAF: Truncated multipart body bypasses MULTIPART_STRICT_ERROR (rule 200003) via silent io.ErrUnexpectedEOF handling |
| CVE-2026-41504 | 2026-10-12 | 5.8 | OWASP Coraza WAF: Native audit-log format allows CRLF injection and log forgery via request body and header fields |
| CVE-2026-41510 | 2026-10-12 | 7.2 | OWASP Coraza WAF: Silent argument drop at ArgumentLimit allows bypass of ARGS-targeted rules via parameter flooding |
| CVE-2026-104774 | 2026-10-12 | 5.8 | OWASP Coraza WAF: jsDecode Off-by-One in Octal Escape Handling Enables WAF Bypass |
| CVE-2026-107835 | 2026-10-09 | 4 | OWASP Coraza WAF: Cookie Parser Confusion |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2023-40586, or call /api/v1/vulnerabilities/CVE-2023-40586. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.