Home
MEDIUM: 5.4 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 <= 1.8.1
affected
Description
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.
Problem types
CWE-674: Uncontrolled Recursion
Product status
References
github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j
github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j