REDHAT-BUG-2469183: Medium severity jqlang jq vulnerability
Published May 11, 2026
·Updated
jq is a command-line JSON processor. In 1.8.1 and earlier, jvcontains 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.
Affected Software
1 affected component
jqlang jq<=1.8.1
Event History
May 11, 2026
Data Sourced
via Red Hat·06:02 PM
DescriptionSeverityAffected Software
Frequently Asked Questions
1
What input conditions are required to trigger the stack exhaustion?
The nested array or object must be constructed programmatically, such as with reduce, and then passed through jv_contains. A deeply nested JSON document alone cannot reach the required depth because jq's JSON parser limits nesting to 10,000 levels.
2
What is the likely impact if the issue is triggered?
The C stack is exhausted while jv_contains recursively processes the nested structure. This can cause jq to fail or terminate.