CVE-2026-40612CWE-674

jq: Stack overflow via unbounded recursion in jv_contains

Medium · published May 11, 2026

CVSS v4.0
5.4
EPSS
0%
Percentile
4.4
In the wild
Unconfirmed
What it is

jq is a command-line JSON processor. In 1.8.1 and earlier, jv_contains recurses into nested arrays/objects with no depth limit. With a sufficiently nested input structure (built programmatically with reduce, since the JSON parser caps at depth 10000), the C stack is exhausted.

The record
Technical detail
CVSS v4.0
5.4 · MEDIUM
Vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P
EPSS
0.00156 · 4.4th percentile
Weakness
CWE-674 · Uncontrolled Recursion
Published
2026-05-11T17:16Z
EPSS history
Timeline
  • 11 MAY 17:16Z
    jq: Stack overflow via unbounded recursion in jv_contains
    cvelistv5