CVE-2023-40586
HIGH 7.5CVSS 3.1Coraza has potential denial of service vulnerability
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
- 25 Aug 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-c2pj-v37r-2p6hGO-2023-1874
- Sources
- NVDJSONOSV GHSA-c2pj-v37r-2p6hJSONOSV GO-2023-1874JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | coraza | corazacpe:2.3:a:coraza:coraza:3.0.0:*:*:*:*:go:*:* |
= 3.0.0 | |
| OSV | Go | github.com/corazawaf/coraza/v3 | >= 3.0.0, < 3.0.1 | 3.0.1 |
| OSV | Go | github.com/corazawaf/coraza/v2 | >= 2.0.0, <= 2.0.1 | |
| OSV | Go | github.com/corazawaf/coraza/v2 | all versions | |
| OSV | Go | github.com/corazawaf/coraza/v3 | < 3.0.1 | 3.0.1 |
References
- https://github.com/corazawaf/coraza/commit/a5239ba3ce839e14d9b4f9486e1b4a403dcade8c · Patch, WEB, FIX
- https://github.com/corazawaf/coraza/security/advisories/GHSA-c2pj-v37r-2p6h · Mitigation, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2023-40586 · ADVISORY
- https://github.com/corazawaf/coraza-caddy/issues/48 · WEB
- https://github.com/corazawaf/coraza/commit/24af0c8cf4f10bab558740b595712be3b85493ec · WEB
- https://github.com/corazawaf/coraza/commit/e1b119b83e12c64f0957e00e8cad45a1b5f012f8 · WEB
- https://github.com/corazawaf/coraza · PACKAGE
- https://github.com/corazawaf/coraza/blob/82157f85f24c6107667bf0f686b71a72aafdf8a5/internal/bodyprocessors/multipart.go#L26-L29 · WEB
- https://github.com/corazawaf/coraza/releases/tag/v3.0.1 · WEB
- https://github.com/golang/go/blob/a031f4ef83edc132d5f49382bfef491161de2476/src/log/log.go#L288-L291 · WEB
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 25 Aug 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Jul 2023)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 26 Jun 2023)