A resource exhaustion vulnerability exists in Coraza v3 multipart body processor due to deferred file handle closures inside a loop. This causes file descriptors to accumulate until the request processing completes, potentially exhausting the file descriptor limit and causing denial of service. The issue affects all v3.x releases before 3.8.0. The vulnerability can trigger false positives in the Core Rule Set (CRS) and block legitimate multipart requests. A patch is available to fix the improper defer usage.
Coraza v3 has a vulnerability where it fails to inspect URL-encoded form bodies if the Content-Type header includes media-type parameters such as charset=UTF-8. This causes Coraza to skip parsing the request body, allowing attackers to bypass custom rules inspecting POST arguments. The issue affects versions from 3.0.4 up to but not including 3.8.1. The vulnerability is rated medium severity with a CVSS score of 5.8. A patch is available to address this issue.
Coraza v3 contains a vulnerability in its JSON response body processor where there is no recursion limit enforced when parsing JSON responses. This leads to unbounded recursion and CPU exhaustion when processing deeply nested JSON responses. The request path enforces a recursion limit, but the response path does not, causing quadratic CPU usage growth with nesting depth. This can result in significant CPU consumption and denial of service when ResponseBodyAccess is enabled and JSON responses contain deeply nested structures.
Coraza v3 prior to 3.8.1 improperly handles multipart file upload filenames when the RFC 5987 extended filename* parameter uses a charset other than us-ascii or utf-8, such as iso-8859-1. This causes Coraza to ignore the filename* value and instead use the plain filename parameter or no filename, allowing attackers to bypass file extension or name-based detection rules. The vulnerability affects the FILES and FILES_SIZES variables and the file-vs-field routing, potentially letting malicious uploads evade inspection. The issue is fixed in version 3.8.1 by independently decoding filename* without charset restrictions and exposing both filename and filename* values.
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.
Coraza v3 before 3.8.0 has a vulnerability in its URI processing logic where malformed URIs containing raw control bytes cause the system to silently drop QUERY_STRING and ARGS_GET variables. This occurs because the URI parsing fails and the fallback logic to extract GET arguments is commented out, resulting in empty GET argument collections. The issue does not affect standard net/http integrations, which reject malformed URIs early, but affects integrations that call ProcessURI directly with unvalidated raw URIs, such as coraza-spoa and coraza-proxy-wasm. This can lead to bypass of OWASP CRS GET-side signature rules that rely on these variables. A fix is available.
Coraza WAF versions 3.0.0 through 3.7.0 contain an off-by-one error in the jsDecode transformation when parsing JavaScript octal escape sequences. This flaw causes the WAF to incorrectly decode these sequences as null bytes, allowing attackers to bypass WAF rules that rely on this decoding. The vulnerability enables bypass of protections against attacks such as cross-site scripting (XSS) and SQL injection when payloads use octal escapes. The issue is fixed in version 3.8.0.
A stack overflow vulnerability exists in the Coraza JSON body processor (github.com/corazawaf/coraza/v3) that can cause the entire host process to crash. This occurs due to an unbounded recursion in the gjson.Valid function when processing deeply nested JSON bodies that bypass argument and byte limits. An unauthenticated attacker can trigger this with a crafted JSON request body well within default and recommended size limits, causing a fatal stack overflow that terminates the process unconditionally.
Coraza v3's JSON body processor flattens nested JSON properties into dot-separated keys without escaping dots in property names, causing key collisions. This allows an unauthenticated attacker to bypass OWASP Core Rule Set (CRS) inspection by overwriting malicious nested JSON values with harmless dotted keys. The vulnerability affects Coraza versions from 3.0.0 up to but not including 3.8.1. The issue was confirmed against CRS v4.25 and can bypass SQL injection detection rules. A patch is available for this vulnerability.
Coraza WAF versions 3.0.0 through 3.8.0 have a vulnerability where the argument limit silently drops request parameters once the limit is reached, without logging or flagging the event. This allows attackers to bypass ARGS-targeted security rules by flooding requests with many parameters, causing malicious arguments to be discarded and evade detection. Additionally, the POST urlencoded body processor bypasses the argument limit entirely, creating a bypass and potential memory DoS risk. The issue is silent and non-deterministic due to Go's randomized map iteration order. A fix is available in version 3.8.1.
A vulnerability in Coraza WAF versions 3.4.0 through before 3.8.0 causes the multipart body processor to silently ignore truncated multipart request bodies due to improper handling of io.ErrUnexpectedEOF. This results in the MULTIPART_STRICT_ERROR flag not being set, preventing the critical defensive rule 200003 from firing on malformed multipart bodies. Consequently, attackers can bypass multipart parser inconsistency detection, potentially enabling evasion of backend multipart parsers and payload smuggling. The issue was introduced in version 3.4.0 and fixed in 3.8.0.
CVE-2026-41504 is a vulnerability in Coraza WAF's Native audit-log format that allows CRLF injection and log forgery via attacker-controlled request body and header fields. The Native format writes raw, unescaped input into line-based log sections, enabling attackers to inject forged log lines that appear legitimate. This compromises the integrity of individual audit records, potentially misleading human operators and automated SIEM systems. The issue affects Coraza versions from 3.0.0 up to but not including 3.8.0 and is fixed in version 3.8.0.