Skip to main content
VulnerabilityPublished

CVE-2026-107826: Coraza JSON body processor · argument-limit truncation reopens an unbounded-depth gjson.Valid stack overflow (process crash)

Affects github.com/corazawaf/coraza/v3Source GCVE Database

0

Mentioned vulnerabilities

CVSS 7.5 High : upgrade to 3.8.1 soon.

Data as of 9 Oct 2026, 22:36 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 3.8.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What to do

Upgrade github.com/corazawaf/coraza/v3 to 3.8.1.

Affected software

ProductAffectedFixed in
Gogithub.com/corazawaf/coraza/v3Affected
  • >=3.0.0 <3.8.1
Fixed in
  • 3.8.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available for this vulnerability. Users should upgrade Coraza to version 3.8.1 or later where this issue is fixed. The fix involves adding an explicitly bounded-depth pre-scan or reusing readItems' recursion accounting before calling gjson.Valid to prevent unbounded recursion. Until patched, no effective mitigation exists as the crash is unrecoverable and triggered by default configuration limits.

Description

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.

References

Community reviews

Loading reviews…