Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/corazawaf/coraza/v3
  4. ›
  5. GHSA-3c6w-j9xm-8h2h

GHSA-3c6w-j9xm-8h2h: Coraza: Unbounded recursion in JSON response body processor causes CPU exhaustion

October 8, 2026 (updated October 9, 2026)

The JSON response body processor parses response bodies with no recursion limit. ProcessResponse calls readJSON(ss, ignoreJSONRecursionLimit), and that constant is -1. The guard in readItems only fires on == 0, so counting down from -1 (-2, -3, …) never reaches it. The guard is effectively dead on the response path. The request path is fine: ProcessRequest passes the configured limit (default 1024). There is no equivalent directive or default for responses.

Parsing a deeply nested JSON response is CPU-bound and its cost grows quadratically with nesting depth. A 512 KiB response (the default ResponseBodyLimit) holds about 87,000 nesting levels and takes ~12 s to process, keeping one core busy the whole time.

References

  • github.com/advisories/GHSA-3c6w-j9xm-8h2h
  • github.com/corazawaf/coraza/commit/cae3c7407e7b84372c207033de03f15f89bf351a
  • github.com/corazawaf/coraza/releases/tag/v3.8.0
  • github.com/corazawaf/coraza/security/advisories/GHSA-3c6w-j9xm-8h2h
  • nvd.nist.gov/vuln/detail/CVE-2026-107833

Code Behaviors & Features

Detect and mitigate GHSA-3c6w-j9xm-8h2h with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.0.0 before 3.8.0

Fixed versions

  • 3.8.0

Solution

Upgrade to version 3.8.0 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

go/github.com/corazawaf/coraza/v3/GHSA-3c6w-j9xm-8h2h.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:51 +0000.