Skip to main content

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

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

Description

CVE-2026-41504 is a vulnerability in Coraza WAF v3 where the native audit-log format allows CRLF injection and log forgery via attacker-controlled request body and header fields. The issue arises because certain fields are written raw into the audit log without escaping carriage return or newline characters, breaking the log's line-based structure. This enables attackers to inject forged log lines that can confuse SIEM tools, shift attribution, and hide genuine incidents. The vulnerability affects Coraza versions from 3.0.0 up to but not including 3.8.0. A patch is available to escape these characters and prevent injection.

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.0.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:37 UTC

Technical Analysis

Coraza WAF's native audit-log format writes attacker-controlled bytes from request headers, request body, response body, response headers, error messages, and matched-rule data directly into the audit log without escaping CR (\r) or LF (\n) characters. The audit log uses line-based sections delimited by randomized prefixes, and injected newlines break this structure, allowing attackers to insert forged log entries. This compromises the integrity of individual audit records, enabling log forgery that can mislead human operators and automated SIEM correlation. The vulnerability does not allow forging entire separate sessions due to unpredictable session prefixes but fully compromises single-record integrity. The JSON and OCSF audit log formats are not affected as they escape these characters properly. The vulnerability affects Coraza versions >=3.0.0 and <3.8.0. A fix is available that escapes CR and LF characters in all raw-write audit log sites.

Potential Impact

An attacker able to inject CRLF sequences into request or response fields logged by Coraza can forge audit log entries, misleading defenders by shifting attribution or confusing SIEM tools. This can break log parsing and hide real incidents by burying genuine alerts under attacker-controlled noise. While forging entire separate sessions is prevented by unpredictable session prefixes, the integrity of individual audit records is compromised, which is sufficient to disrupt incident analysis and response.

Mitigation Recommendations

A patch is available that escapes carriage return and newline characters in all raw-write audit log fields in Coraza's native audit-log format. Users should upgrade to a fixed version >=3.8.0 or apply the vendor's official fix. Until patched, avoid using the native audit-log format or restrict inputs to prevent injection of CRLF sequences. The JSON and OCSF audit log formats are not affected and can be used as safer alternatives.

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-prpw-wwv7-xjjr
Osv Schema Version
1.4.0
Aliases
["CVE-2026-41504"]
Ecosystems
["Go"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6ac56b1c2cdf04f656e1c0ae

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

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

Last updated: 10/06/2026, 21:42:37 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