KeygraphLabs · CVE MCP

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.

CVSS
7.5
high, from NVD
EPSS
0.72%
percentile 55.4%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-26Package advisory GHSA-c2pj-v37r-2p6h
2023-07-05Package advisory GO-2023-1874
2023-08-25Published
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 0.89%
2026-12-04Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-c2pj-v37r-2p6hgithub.com/corazawaf/coraza/v3 (Go)3.0.1
GHSA-c2pj-v37r-2p6hgithub.com/corazawaf/coraza/v2 (Go)no fix yet
GO-2023-1874github.com/corazawaf/coraza/v2 (Go)no fix yet
GO-2023-1874github.com/corazawaf/coraza/v3 (Go)3.0.1

Also known as: GHSA-c2pj-v37r-2p6h, GO-2023-1874

Credited: rmb122 (other)

Related

CVEPublishedCVSSSummary
CVE-2026-1141012026-10-216.3Coraza before 3.8.1 Multipart filename* Charset Handling FILES Rule Bypass
CVE-2026-1141002026-10-216.9Coraza from 3.0.4 before 3.8.1 Request Body Inspection Bypass via Content-Type
CVE-2026-1140992026-10-216.9Coraza 3.0.0 before 3.8.1 WAF Bypass via JSON Key Collision
CVE-2026-415082026-10-125.8OWASP Coraza WAF: Truncated multipart body bypasses MULTIPART_STRICT_ERROR (rule 200003) via silent io.ErrUnexpectedEOF handling
CVE-2026-415042026-10-125.8OWASP Coraza WAF: Native audit-log format allows CRLF injection and log forgery via request body and header fields
CVE-2026-415102026-10-127.2OWASP Coraza WAF: Silent argument drop at ArgumentLimit allows bypass of ARGS-targeted rules via parameter flooding
CVE-2026-1047742026-10-125.8OWASP Coraza WAF: jsDecode Off-by-One in Octal Escape Handling Enables WAF Bypass
CVE-2026-1078352026-10-094OWASP 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.

NVD · CVE.org