製品・ソフトウェアに関する情報
jqlangのjqにおける再帰制御に関する脆弱性
Title jqlangのjqにおける再帰制御に関する脆弱性
Summary

jqはコマンドラインのJSONプロセッサです。バージョン1.8.1以前では、jv_containsは深さ制限なしにネストされた配列やオブジェクトを再帰的に処理していました。十分にネストされた入力構造(JSONパーサーは深さ10000で制限されるため、reduceでプログラム的に構築されたもの)を与えると、Cスタックが枯渇します。

Possible impacts 当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date May 11, 2026, midnight
Registration Date May 15, 2026, 11:01 a.m.
Last Update May 15, 2026, 11:01 a.m.
CVSS3.0 : 警告
Score 5.5
Vector CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Affected System
jqlang
jq 1.8.1 およびそれ以前
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年05月15日]
  掲載
May 15, 2026, 11:01 a.m.

NVD Vulnerability Information
CVE-2026-40612
Summary

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.

Publication Date May 12, 2026, 3:16 a.m.
Registration Date May 12, 2026, 4:14 a.m.
Last Update May 14, 2026, 2 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:jqlang:jq:*:*:*:*:*:*:*:* 1.8.1
Related information, measures and tools
Common Vulnerabilities List