github.com/corazawaf/coraza/v3 · V3: Coraza has Cookie Parser Confusion
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
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
- github.com/corazawaf/coraza/security/advisories/GHSA-g4qm-m288-5cp9 (opens in a new tab)
- github.com/corazawaf/coraza/commit/0b940e197ad9983fb3aa36e84f1f81ff985461af (opens in a new tab)
- github.com/corazawaf/coraza/commit/9f8521398d1ff023b958fad0b944cac265763866 (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)