Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/corazawaf/coraza/v3
  4. ›
  5. GHSA-rp9v-7xv3-r6g3

GHSA-rp9v-7xv3-r6g3: Coraza: Resource exhaustion via deferred file handle accumulation in multipart body processor

October 8, 2026 (updated October 9, 2026)

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. With CRS loaded, that flips MULTIPART_STRICT_ERROR to 1 and rule 200001 starts returning 400s, including on legitimate requests hitting the same condition.

References

  • github.com/advisories/GHSA-rp9v-7xv3-r6g3
  • github.com/corazawaf/coraza/commit/1bc39036e99c88e7de60cf8e6bb55ee4c311223c
  • github.com/corazawaf/coraza/releases/tag/v3.8.0
  • github.com/corazawaf/coraza/security/advisories/GHSA-rp9v-7xv3-r6g3
  • nvd.nist.gov/vuln/detail/CVE-2026-107834

Code Behaviors & Features

Detect and mitigate GHSA-rp9v-7xv3-r6g3 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.0.0 before 3.8.0

Fixed versions

  • 3.8.0

Solution

Upgrade to version 3.8.0 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-772: Missing Release of Resource after Effective Lifetime

Source file

go/github.com/corazawaf/coraza/v3/GHSA-rp9v-7xv3-r6g3.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:05 +0000.