CVE-2026-41504

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

Published Oct 12, 2026 CVSS 3.1 · 5.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability arises from the Native audit‑log formatter in Coraza WAF, which writes request and response data directly without neutralizing carriage returns or line feeds. An attacker who can control the request or response body, header, error‑message or matched‑rule data can inject CRLF sequences that are interpreted as new log lines. This results in forged audit entries that can mislead operators and corrupt line‑oriented SIEM processing. Although the injection does not produce a separate tampered session because transaction boundaries remain unpredictable, the ability to modify audit logs can facilitate covert activity and obscure malicious behaviour.

Affected Systems

Affected systems include the OWASP Coraza Web Application Firewall, versions 3.0.0 through 3.8.0. All releases up to but excluding 3.8.0 are impacted. The vulnerability was fixed in the 3.8.0 release.

Risk and Exploitability

The CVSS base score of 5.8 indicates moderate severity. The EPSS score is not available, and the bug does not appear in the CISA KEV catalog. The likely attack vector is remote; a web attacker can craft HTTP requests that include malicious CRLF payloads in body or header fields to trigger the injection. Because this flaw alters log output rather than directly impacting application logic, exploitation would primarily compromise post‑incident visibility and monitoring but does not grant direct code execution or privilege escalation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Coraza WAF to v3.8.0 or later, which removes the vulnerable formatter.
  • If an upgrade cannot be performed immediately, disable the Native audit‑log formatter (SecAuditLogFormat Native) to prevent injection‑enabled logging.
  • Deploy log integrity checks or a log sanitization layer that strips CRLF injections before logs are consumed by SIEM systems.

Generated by OpenCVE AI on October 12, 2026 at 21:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-prpw-wwv7-xjjr Coraza: Native audit-log format allows CRLF injection and log forgery via request body and header fields
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Coraza
Coraza coraza
Vendors & Products Coraza
Coraza coraza
Type Values Removed Values Added
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.
Title OWASP Coraza WAF: Native audit-log format allows CRLF injection and log forgery via request body and header fields
Weaknesses CWE-117
CWE-93
References
Metrics cvssV3_1

{'score': 5.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N'}

Weaknesses
  • CWE-117

    Improper Output Neutralization for Logs

  • CWE-93

    Improper Neutralization of CRLF Sequences ('CRLF Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 13, 2026, 5:26 PM
Reserved
Apr 20, 2026, 6:18 PM
Status
Deferred
Published
Oct 12, 2026, 9:17 PM
Modified
Oct 16, 2026, 8:04 PM