CVE-2026-107826: CWE-674: Uncontrolled Recursion in corazawaf coraza
Description
OWASP Coraza WAF is a golang modsecurity compatible web application firewall library. From 3.0.0 until 3.8.1, readJSON in internal/bodyprocessors/json.go can stop its bounded flattening walk after reaching SecArgumentsLimit or the byte budget and then call gjson.Valid on the complete raw body. An unauthenticated attacker can submit shallow values followed by an extremely deeply nested JSON tail that was not visited by the bounded walk, causing gjson.Valid to recurse without a depth bound and terminate the hosting process with an unrecoverable fatal stack overflow. The ProcessRequest and ProcessResponse JSON paths share the affected readJSON validation flow, and the payload can remain within recommended body-size and argument-count limits. This issue is fixed in version 3.8.1.
CVSS v3.1
Score 7.5high
Affected software
corazawaf
coraza
pkg:golang/github.com/corazawaf/corazaRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in Coraza WAF's readJSON function (internal/bodyprocessors/json.go) from versions 3.0.0 up to but not including 3.8.1. The function performs a bounded flattening walk on JSON input, stopping after reaching SecArgumentsLimit or a byte budget, then calls gjson.Valid on the entire raw body. An attacker can exploit this by submitting a JSON payload with shallow values followed by a deeply nested JSON tail that was not processed by the bounded walk. This causes gjson.Valid to recurse without a depth limit, resulting in a fatal stack overflow that terminates the hosting process. Both ProcessRequest and ProcessResponse JSON paths share this vulnerable validation flow. The vulnerability does not require authentication and the payload can remain within recommended size and argument limits. The issue is resolved in Coraza version 3.8.1.
Potential Impact
An unauthenticated attacker can cause a denial of service by crashing the hosting process through a fatal stack overflow triggered by unbounded recursion in JSON validation. There is no impact on confidentiality or integrity reported. The attack results in availability disruption of the Coraza WAF service.
Mitigation Recommendations
This vulnerability is fixed in Coraza version 3.8.1. Users should upgrade to version 3.8.1 or later to remediate this issue. No other mitigation or temporary workaround is indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-08T21:23:59.824Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ac9291a2cdf04f656733be5
Added to database: 10/09/2026, 17:49:14 UTC
Last enriched: 10/09/2026, 18:03:30 UTC
Last updated: 10/09/2026, 19:48:07 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.