{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-40586","id":"CVE-2023-40586","title":"go package github.com/corazawaf/coraza is vulnerable to denial of service","description":"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.\n","descriptionLong":"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.\n","published":"2023-08-25T20:35:27.459Z","updated":"2026-10-28T02:30:38.915131142Z","reserved":"2023-08-16T18:24:02.392Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["corazawaf coraza"],"affectedProducts":[{"vendor":"corazawaf","product":"coraza","defaultStatus":null,"versions":[{"version":"< 3.0.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/corazawaf/coraza/v3","purl":"pkg:golang/github.com/corazawaf/coraza/v3","ranges":[">=3.0.0 <3.0.1","<3.0.1"],"fixed":["3.0.1"],"advisory":"GHSA-c2pj-v37r-2p6h"},{"ecosystem":"Go","name":"github.com/corazawaf/coraza/v2","purl":"pkg:golang/github.com/corazawaf/coraza/v2","ranges":[">=2.0.0 <=2.0.1","all versions"],"fixed":[],"advisory":"GHSA-c2pj-v37r-2p6h"}],"cwes":["CWE-400"],"aliases":["GHSA-c2pj-v37r-2p6h","GO-2023-1874"],"references":[{"url":"https://github.com/corazawaf/coraza/security/advisories/GHSA-c2pj-v37r-2p6h","tags":["x_refsource_CONFIRM","x_transferred","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://github.com/corazawaf/coraza/commit/a5239ba3ce839e14d9b4f9486e1b4a403dcade8c","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40586.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40586","tags":["advisory"]},{"url":"https://github.com/corazawaf/coraza-caddy/issues/48","tags":["web"]},{"url":"https://github.com/corazawaf/coraza/commit/24af0c8cf4f10bab558740b595712be3b85493ec","tags":["web"]},{"url":"https://github.com/corazawaf/coraza/commit/e1b119b83e12c64f0957e00e8cad45a1b5f012f8","tags":["web"]},{"url":"https://github.com/corazawaf/coraza","tags":["package"]},{"url":"https://github.com/corazawaf/coraza/blob/82157f85f24c6107667bf0f686b71a72aafdf8a5/internal/bodyprocessors/multipart.go#L26-L29","tags":["web"]},{"url":"https://github.com/corazawaf/coraza/releases/tag/v3.0.1","tags":["web"]},{"url":"https://github.com/golang/go/blob/a031f4ef83edc132d5f49382bfef491161de2476/src/log/log.go#L288-L291","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.00723,"epssPercentile":0.54733,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-40586","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40586","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-40586","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-c2pj-v37r-2p6h","ok":true,"note":"GHSA-c2pj-v37r-2p6h"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-40586","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}