THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-rp9v-7xv3-r6g3 (medium) — Coraza: Resource exhaustion via deferred file handle accumulation in multipart body processor

[GHSA] GHSA-rp9v-7xv3-r6g3 (medium) — Coraza: Resource exhaustion via deferred file handle accumulation in multipart body processor

medgithub_advisoriesPublished 2026-10-08

GHSA-rp9v-7xv3-r6g3 Severity: medium CVE: None

Coraza: Resource exhaustion via deferred file handle accumulation in multipart body processor

## Summary

`defer temp.Close()` sits inside a `for` loop in the multipart processor. Go defers run at function return, not loop end, so every file part in the request holds an open fd until `ProcessRequest()` exits. Send enough parts and you hit `EMFILE`.

Original source: https://github.com/advisories/GHSA-rp9v-7xv3-r6g3