jqlangのjqにおける複数の脆弱性
| Title |
jqlangのjqにおける複数の脆弱性
|
| Summary |
jqはコマンドラインのJSONプロセッサです。69785bf77f86e2ea1b4a20ca86775916889e91c9以降のコミットで、jqのsrc/builtin.cにある_strindices組み込み関数は、引数が文字列であることを検証せずにjv_string_indexes()に直接渡します。src/jv.cのjv_string_indexes()はassert()チェックのみに依存していますが、これは-DNDEBUGでコンパイルされたリリースビルドで除去されます。これにより、攻撃者は_strindices(0)のような入力で簡単にjqをクラッシュさせることができ、IEEE-754のビットパターンが選択したポインタに対応する数値を作成することで、制御されたポインタ参照と限定的なメモリ読み取り/プローブのプリミティブを実現できます。信頼されていないjqフィルターをリリースビルドで評価するすべての展開環境が脆弱になります。この問題はコミットfdf8ef0f0810e3d365cdd5160de43db46f57ed03で修正されました。
|
| Possible impacts |
当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| Solution |
正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
April 13, 2026, midnight |
| Registration Date |
April 23, 2026, 10:11 a.m. |
| Last Update |
April 23, 2026, 10:11 a.m. |
|
CVSS3.0 : 警告
|
| Score |
6.1
|
| Vector |
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H |
Affected System
| jqlang |
|
jq 2026-04-02 以上 2026-04-08 未満
|
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年04月23日] 掲載 |
April 23, 2026, 10:11 a.m. |
NVD Vulnerability Information
CVE-2026-39956
| Summary |
jq is a command-line JSON processor. In commits after 69785bf77f86e2ea1b4a20ca86775916889e91c9, the _strindices builtin in jq's src/builtin.c passes its arguments directly to jv_string_indexes() without verifying they are strings, and jv_string_indexes() in src/jv.c relies solely on assert() checks that are stripped in release builds compiled with -DNDEBUG. This allows an attacker to crash jq trivially with input like _strindices(0), and by crafting a numeric value whose IEEE-754 bit pattern maps to a chosen pointer, achieve a controlled pointer dereference and limited memory read/probe primitive. Any deployment that evaluates untrusted jq filters against a release build is vulnerable. This issue has been patched in commit fdf8ef0f0810e3d365cdd5160de43db46f57ed03.
|
| Publication Date |
April 14, 2026, 8:16 a.m. |
| Registration Date |
April 15, 2026, 11:39 a.m. |
| Last Update |
April 22, 2026, 8:54 a.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:jqlang:jq:*:*:*:*:*:*:*:* |
2026-04-02 |
|
|
2026-04-08 |
Related information, measures and tools
Common Vulnerabilities List