CVE-2026-41504 OWASP Coraza WAF: Native audit-log format allows CRLF injection and log forgery via request body and header fields

Medium 5.8 Published Updated

Attackers can inject CRLF characters into audit logs via request fields, forging log entries and misleading SIEM systems when the Native audit-log format is enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-41504?

CVE-2026-41504 is a medium-severity vulnerability in corazawaf coraza, published on 12 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

OWASP Coraza WAF is a golang modsecurity compatible web application firewall library. From 3.0.0 until 3.8.0, the Native audit-log formatter in internal/auditlog/formats.go writes attacker-influenced request and response fields without neutralizing carriage returns or line feeds. When SecAuditLogFormat Native is enabled, injected line breaks can create forged lines inside a transaction record. An attacker who controls request or response body, header, error-message, or matched-rule data can inject carriage returns and line feeds that appear as forged audit lines within a transaction record. The forged content can mislead operators and line-oriented SIEM processing, although the unpredictable transaction boundary prevents straightforward impersonation of a separate complete session. This issue is fixed in version 3.8.0.

Weakness: CWE-93, CWE-117

Which versions are affected by CVE-2026-41504?

5 open source packages ship an affected version, including github.com/corazawaf/coraza/v3, github.com/corazawaf/coraza and github.com/corazawaf/coraza/v2.

PackageAffectedFixed in
github.com/corazawaf/coraza/v3 GoFrom 3.0.03.8.0
github.com/corazawaf/coraza/v3 GoFrom 3.0.03.8.0
github.com/corazawaf/coraza/v3 GoFrom 3.0.03.8.0
github.com/corazawaf/coraza GoAll versionsNone
github.com/corazawaf/coraza/v2 GoAll versionsNone

How do I fix CVE-2026-41504?

Upgrade github.com/corazawaf/coraza/v3 to 3.8.0 or later.

Is CVE-2026-41504 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41504 exists.

Sources

Also known as GHSA-prpw-wwv7-xjjr, GO-2026-6669.

Is CVE-2026-41504 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free