Skip to main content

V3: Coraza: Truncated multipart body bypasses MULTIPART_STRICT_ERROR (rule 200003) via silent io.ErrUnexpectedEOF handling (CVE-2026-41508)

0
Medium
Published: 10/06/2026 (10/06/2026, 20:37:54 UTC)
Source: GCVE Database
Product: github.com/corazawaf/coraza/v3

Description

CVE-2026-41508 is a medium severity vulnerability in Coraza WAF v3 affecting versions from 3.4.0 up to but not including 3.8.0. The multipart body processor incorrectly treats io.ErrUnexpectedEOF as a benign condition, causing the MULTIPART_STRICT_ERROR flag not to be set on truncated multipart bodies. This prevents the critical defensive rule 200003 from firing, allowing malformed multipart requests that truncate the body to bypass detection. The issue was introduced in a 2026-03-06 commit and affects three code paths in the multipart processor. A patch is available to correct this behavior and restore proper error signaling.

CVSS v3.1

Score 5.8medium

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

Affected software

Goghsa
github.com/corazawaf/coraza/v3
Affected versions
>=3.4.0 <3.8.0

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/06/2026, 21:42:32 UTC

Technical Analysis

The vulnerability arises from a logic flaw in Coraza's multipart body processor where the io.ErrUnexpectedEOF error is silently ignored without setting the MULTIPART_STRICT_ERROR flag. This error handling was introduced in commit 3347961b to support partial processing of truncated request bodies but inadvertently disables the key multipart strict validation rule (200003). As a result, malformed multipart requests that truncate the body do not trigger the fail-closed defensive rule, allowing evasion of multipart parser inconsistency detection. This can enable attacks such as HTTP request smuggling or payload hiding that rely on parser discrepancies between Coraza and backend parsers. The fix involves setting the MULTIPART_STRICT_ERROR flag even when io.ErrUnexpectedEOF occurs, allowing operators to detect and block such malformed requests.

Potential Impact

The impact is that Coraza's recommended multipart strict validation rule (200003) fails to detect and block malformed multipart requests that are truncated prematurely. This disables the primary defense against multipart parser inconsistency evasions, potentially allowing attackers to smuggle additional fields or hide payloads that backend parsers accept but Coraza rejects. While the vulnerability does not directly cause denial of service or data exposure, it undermines a critical defense-in-depth mechanism, increasing the risk of evasion and exploitation of backend multipart parsers.

Mitigation Recommendations

A patch is available for Coraza versions >=3.4.0 <3.8.0 that restores correct setting of the MULTIPART_STRICT_ERROR flag on truncated multipart bodies. Operators should apply the official fix to ensure rule 200003 functions as intended. Until patched, operators relying on rule 200003 for multipart validation may be vulnerable to evasion via truncated multipart requests. No alternative mitigations are indicated in the advisory; the fix is low-risk and recommended.

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-r3rm-qphw-hh76
Osv Schema Version
1.4.0
Aliases
["CVE-2026-41508"]
Ecosystems
["Go"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6ac56b1c2cdf04f656e1c0ac

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

Last enriched: 10/06/2026, 21:42:32 UTC

Last updated: 10/06/2026, 21:42:32 UTC

Views: 7

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