github.com/corazawaf/coraza/v3 · V3: Coraza: Multipart filename* (RFC 5987) charset restriction lets a decoy filename bypass FILES-based rules
Affects github.com/corazawaf/coraza/v3Source GCVE Database
CVSS 4.0 Medium : upgrade to 3.8.1 when convenient.
Data as of 8 Oct 2026, 22:11 UTC
- Patch
- Available – fixed in 3.8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:NWhat to do
Upgrade github.com/corazawaf/coraza/v3 to 3.8.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/corazawaf/coraza/v3 | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in Coraza version 3.8.1 that independently decodes the filename* parameter without charset restrictions and correctly populates multipart filename variables. Users should upgrade to version 3.8.1 or later to remediate this vulnerability. Until upgraded, rules relying on FILES or FILES_NAMES for filename inspection may be bypassed by attackers using non-us-ascii/utf-8 charsets in filename*. No other mitigation is documented or recommended by the vendor advisory.
Description
Coraza v3 prior to 3.8.1 improperly handles multipart file upload filenames when the RFC 5987 extended filename* parameter uses a charset other than us-ascii or utf-8, such as iso-8859-1. This causes Coraza to ignore the filename* value and instead use the plain filename parameter or no filename, allowing attackers to bypass file extension or name-based detection rules. The vulnerability affects the FILES and FILES_SIZES variables and the file-vs-field routing, potentially letting malicious uploads evade inspection. The issue is fixed in version 3.8.1 by independently decoding filename* without charset restrictions and exposing both filename and filename* values.
References
- github.com/corazawaf/coraza/security/advisories/GHSA-3wr7-993q-jrff (opens in a new tab)
- github.com/corazawaf/coraza/commit/5427c501b2fea6ae1305903efef01b3049224a58 (opens in a new tab)
- github.com/corazawaf/coraza/commit/b2a9264437116bdd98a86fe345b2aec1152d3d7c (opens in a new tab)
- github.com/corazawaf/coraza/commit/cae3c7407e7b84372c207033de03f15f89bf351a (opens in a new tab)
- github.com/corazawaf/coraza (opens in a new tab)
- github.com/corazawaf/coraza/releases/tag/v3.8.1 (opens in a new tab)