CVE-2023-40586Coraza
High 7.5 No auth needed
Follow: this CVE · Coraza · Coraza We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Aug 25, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-400
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Coraza.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/corazawaf/coraza/v2 |
≥ 2.0.0 ≤ 2.0.1 |
no fixed version | — |
| Go | github.com/corazawaf/coraza/v2 |
all |
no fixed version | — |
| Go | github.com/corazawaf/coraza/v3 |
≥ 3.0.0 < 3.0.1 |
3.0.1 |
go get github.com/corazawaf/coraza/v3@v3.0.1 |
| Go | github.com/corazawaf/coraza/v3 |
< 3.0.1 |
3.0.1 |
go get github.com/corazawaf/coraza/v3@v3.0.1 |
Per OSV / GitHub Advisories (GHSA-c2pj-v37r-2p6h, GO-2023-1874). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| coraza | coraza | 3.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Mitigation Vendor Advisory