Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/corazawaf/coraza/v3
  4. ›
  5. CVE-2026-41508

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

October 6, 2026

Rule 200003 is Coraza’s blanket defense against multipart parser-inconsistency evasions — attack classes where the body is crafted so Coraza’s Go mime/multipart reader and the backend’s multipart parser (PHP, Node, Java, legacy libmodsecurity, etc.) disagree about where fields start or end. The rule fails-closed on any malformed body, so the operator does not need to enumerate every parser-disagreement trick. That defense is now void for any evasion that also truncates the body.

Examples of what becomes reachable:

  • Smuggling a second field past the truncation boundary that the backend’s more permissive parser still extracts.
  • Hiding payload bytes after a deliberately malformed Content-Disposition header that the Go parser refuses but the backend accepts.
  • Generic CRS evasion chains that depend on rule 200003 as a catch-all.

The fix is tiny and low-risk. The impact is disproportionately large because rule 200003 is the only defense-in-depth rule for multipart in the recommended config — there is no secondary signal.

References

  • github.com/advisories/GHSA-r3rm-qphw-hh76
  • github.com/corazawaf/coraza/commit/f94c81bec209f658120c418448d0590a549b71df
  • github.com/corazawaf/coraza/releases/tag/v3.8.0
  • github.com/corazawaf/coraza/security/advisories/GHSA-r3rm-qphw-hh76
  • nvd.nist.gov/vuln/detail/CVE-2026-41508

Code Behaviors & Features

Detect and mitigate CVE-2026-41508 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.4.0 before 3.8.0

Fixed versions

  • 3.8.0

Solution

Upgrade to version 3.8.0 or above.

Impact 5.8 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-693: Protection Mechanism Failure
  • CWE-755: Improper Handling of Exceptional Conditions

Source file

go/github.com/corazawaf/coraza/v3/CVE-2026-41508.yml

Spotted a mistake? Edit the file on GitLab.

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

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