Skip to main content
VulnerabilityPublished

github.com/corazawaf/coraza/v3 · V3: Coraza has Cookie Parser Confusion

Affects github.com/corazawaf/coraza/v3Source GCVE Database

0

CVSS 4.0 Medium : upgrade to 3.8.1 when convenient.

Data as of 8 Oct 2026, 22:11 UTC

CVSS 3.1 base score
4.0Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

What to do

Upgrade github.com/corazawaf/coraza/v3 to 3.8.1.

Affected software

ProductAffectedFixed in
Gogithub.com/corazawaf/coraza/v3Affected
  • <3.8.1
Fixed in
  • 3.8.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

An official fix is available in Coraza version 3.8.1 that corrects the cookie parser to trim the full ASCII control character range from cookie names and values. Users should upgrade to version 3.8.1 or later to mitigate this issue. No additional action is required beyond applying the official patch.

Description

Coraza's cookie parser in versions prior to 3.8.1 does not fully strip ASCII control characters (CTLs) from cookie names and values, causing a mismatch between the WAF and backend application cookie parsing. This discrepancy can allow attackers to bypass WAF rules scoped to specific cookies by padding the Cookie header with CTLs adjacent to the '=' separator. The issue arises because Coraza trims only space and tab characters, whereas RFC 6265 requires trimming the full CTL range. A fix is available that aligns Coraza's parsing with RFC 6265 by trimming the full CTL range from cookie names and values.

References

Community reviews

Loading reviews…