---
id: "GHSA-rp9v-7xv3-r6g3"
kind: "vulnerability"
aliases: ["GHSA-rp9v-7xv3-r6g3", "GO-2026-6697"]
title: "Coraza: Resource exhaustion via deferred file handle accumulation in multipart body processor in github.com/corazawaf/coraza"
severity: "unknown"
cvss: null
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "github.com/corazawaf/coraza", "fixed": [], "affected": "all versions", "ecosystem": "go"}, {"name": "github.com/corazawaf/coraza/v2", "fixed": [], "affected": "all versions", "ecosystem": "go"}, {"name": "github.com/corazawaf/coraza/v3", "fixed": ["3.8.0"], "affected": ">= 3.0.0, < 3.8.0", "ecosystem": "go"}]
ecosystems: ["go"]
tags: ["coraza", "go", "package", "self-hosted", "waf"]
not_affected_if: ["default-config"]
published_at: "2026-10-19T21:08:17+00:00"
first_seen_at: "2026-10-23T19:13:08+00:00"
updated_at: "2026-10-23T20:15:30+00:00"
sources: [{"source": "govuln", "url": "https://pkg.go.dev/vuln/GO-2026-6697", "first_seen_at": "2026-10-23T19:13:08+00:00"}]
---

# Coraza: Resource exhaustion via deferred file handle accumulation in multipart body processor in github.com/corazawaf/coraza

Coraza is a Go web application firewall library; versions 3.0.0 through 3.8.0 (exclusive) accumulate deferred file handles while processing multipart request bodies. An attacker who sends crafted multipart requests can exhaust the server's resources.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- go:github.com/corazawaf/coraza affected all versions fixed ?
- go:github.com/corazawaf/coraza/v2 affected all versions fixed ?
- go:github.com/corazawaf/coraza/v3 affected >= 3.0.0, < 3.8.0 fixed 3.8.0

## How to check

Run `go list -m github.com/corazawaf/coraza/v3` in the project and check whether the version is >= 3.0.0 and < 3.8.0.

## Fix

Upgrade github.com/corazawaf/coraza/v3 to 3.8.0 or later.

## Timeline

- 2026-10-23T19:13:08+00:00 govuln https://pkg.go.dev/vuln/GO-2026-6697

## From the sources

Coraza: Resource exhaustion via deferred file handle accumulation in multipart body processor in github.com/corazawaf/coraza

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
