Skip to main content

V3: Coraza: Multipart filename* (RFC 5987) charset restriction lets a decoy filename bypass FILES-based rules

0
Medium
Published: 10/08/2026 (10/08/2026, 17:51:36 UTC)
Source: GCVE Database
Product: github.com/corazawaf/coraza/v3

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.

CVSS v3.1

Score 4.0medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N

Affected software

Goghsa
github.com/corazawaf/coraza/v3
Affected versions
<3.8.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/08/2026, 22:11:46 UTC

Technical Analysis

Coraza uses Go's mime.ParseMediaType to parse multipart upload filenames, which only decodes RFC 5987 filename* parameters if their charset is exactly us-ascii or utf-8. For other charsets like iso-8859-1, the standard library silently fails to decode filename*, leaving Coraza to use the plain filename or no filename at all. This discrepancy allows an attacker to present a benign filename to Coraza's FILES variable while the backend application receives a malicious filename, bypassing rules that block uploads by filename or extension. Additionally, parts with only filename* and no plain filename are not recognized as file uploads by Coraza, skipping file-specific rule scopes and size tracking. The vulnerability is a scope-changing bypass with low integrity impact and requires no authentication or user interaction. It was fixed by implementing independent decoding of filename* and populating the MULTIPART_FILENAME variable in Coraza 3.8.1.

Potential Impact

This vulnerability allows attackers to bypass Coraza's file upload inspection rules that rely on the FILES variable by using a filename* parameter with a charset other than us-ascii or utf-8, such as iso-8859-1. As a result, malicious filenames can evade detection while the backend application processes the true filename, potentially allowing unauthorized file uploads or execution. The bypass affects filename-based inspection and file-vs-field routing, but does not affect inspection of request body content, ARGS, or headers. The impact is limited to scope-changing bypass with low integrity impact and no direct compromise or availability impact.

Mitigation Recommendations

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-3wr7-993q-jrff
Osv Schema Version
1.4.0
Ecosystems
["Go"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6ac80fb92cdf04f65639c2ae

Added to database: 10/08/2026, 21:48:41 UTC

Last enriched: 10/08/2026, 22:11:46 UTC

Last updated: 10/08/2026, 22:11:46 UTC

Views: 8

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses