Skip to main content

CVE-2026-107826: CWE-674: Uncontrolled Recursion in corazawaf coraza

0
High
VulnerabilityCVE-2026-107826cvecve-2026-107826cwe-674
Published: 10/09/2026 (10/09/2026, 17:33:49 UTC)
Source: CVE Database V5
Vendor/Project: corazawaf
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

corazawaf

coraza

Affected versions
>=3.0.0 <3.8.1
github.com/corazawaf/coraza
pkg:golang/github.com/corazawaf/coraza
Affected versions
>=3.0.0 <3.8.1

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/09/2026, 18:03:30 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 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