Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/corazawaf/coraza/v3
  4. ›
  5. GHSA-3wr7-993q-jrff

GHSA-3wr7-993q-jrff: Coraza: Multipart filename* (RFC 5987) charset restriction lets a decoy filename bypass FILES-based rules

October 8, 2026

Coraza extracts a multipart file upload’s filename using Go’s standard-library mime.ParseMediaType, which only decodes the RFC 5987/6266 extended filename* Content-Disposition parameter when its declared charset is exactly us-ascii or utf-8. Any other charset — including iso-8859-1, which RFC 5987 explicitly permits — is silently dropped by the stdlib, with no error and no fallback signal. This lets an attacker present one filename to Coraza and a different one to the backend application in the same request.

References

  • github.com/advisories/GHSA-3wr7-993q-jrff
  • github.com/corazawaf/coraza/commit/5427c501b2fea6ae1305903efef01b3049224a58
  • github.com/corazawaf/coraza/commit/b2a9264437116bdd98a86fe345b2aec1152d3d7c
  • github.com/corazawaf/coraza/commit/cae3c7407e7b84372c207033de03f15f89bf351a
  • github.com/corazawaf/coraza/releases/tag/v3.8.1
  • github.com/corazawaf/coraza/security/advisories/GHSA-3wr7-993q-jrff

Code Behaviors & Features

Detect and mitigate GHSA-3wr7-993q-jrff 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 before 3.8.1

Fixed versions

  • 3.8.1

Solution

Upgrade to version 3.8.1 or above.

Impact 4 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-436: Interpretation Conflict

Source file

go/github.com/corazawaf/coraza/v3/GHSA-3wr7-993q-jrff.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:46 +0000.