製品・ソフトウェアに関する情報
Go JOSE projectのGo JOSEにおけるキャッチされない例外に関する脆弱性
Title Go JOSE projectのGo JOSEにおけるキャッチされない例外に関する脆弱性
Summary

Go JOSEは、GoでJavaScriptのオブジェクト署名および暗号化の標準セットを実装しており、JSON Web Encryption(JWE)、JSON Web Signature(JWS)、およびJSON Web Token(JWT)の各標準をサポートしています。バージョン4.1.4および3.0.5より前では、algフィールドがキーラッピングアルゴリズム(A128GCMKW、A192GCMKW、A256GCMKWを除くKWで終わるもの)を示し、encrypted_keyフィールドが空の場合にJSON Web Encryption(JWE)オブジェクトの復号時にパニックが発生します。このパニックは、key_wrap.go内のcipher.KeyUnwrap()がencrypted_keyの長さに基づいて長さゼロまたは負のスライスを割り当てようとするときに発生します。このコードパスには、ParseEncrypted()、ParseEncryptedJSON()、ParseEncryptedCompact()のいずれかで解析し、その後に生成されたオブジェクトでDecrypt()を呼び出すことで到達できます。なお、解析関数は許容されるキーアルゴリズムのリストを受け取ります。もし許容されるキーアルゴリズムにキーラッピングアルゴリズムが含まれていなければ、解析は失敗し、アプリケーションに影響はありません。このパニックはまた、16バイト未満の任意の暗号文パラメータでcipher.KeyUnwrap()を直接呼び出すことでも発生しますが、この関数を直接呼び出すことはあまり一般的ではありません。このパニックはサービス拒否(DoS)につながる可能性があります。この脆弱性はバージョン4.1.4および3.0.5で修正されています。

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

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

Publication Date April 6, 2026, midnight
Registration Date May 7, 2026, 11:27 a.m.
Last Update May 7, 2026, 11:27 a.m.
CVSS3.0 : 重要
Score 7.5
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected System
Go JOSE project
Go JOSE 3.0.0 以上 3.0.5 未満
Go JOSE 4.0.0 以上 4.1.4 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年05月07日]
  掲載
May 7, 2026, 11:27 a.m.

NVD Vulnerability Information
CVE-2026-34986
Summary

Go JOSE provides an implementation of the Javascript Object Signing and Encryption set of standards in Go, including support for JSON Web Encryption (JWE), JSON Web Signature (JWS), and JSON Web Token (JWT) standards. Prior to 4.1.4 and 3.0.5, decrypting a JSON Web Encryption (JWE) object will panic if the alg field indicates a key wrapping algorithm (one ending in KW, with the exception of A128GCMKW, A192GCMKW, and A256GCMKW) and the encrypted_key field is empty. The panic happens when cipher.KeyUnwrap() in key_wrap.go attempts to allocate a slice with a zero or negative length based on the length of the encrypted_key. This code path is reachable from ParseEncrypted() / ParseEncryptedJSON() / ParseEncryptedCompact() followed by Decrypt() on the resulting object. Note that the parse functions take a list of accepted key algorithms. If the accepted key algorithms do not include any key wrapping algorithms, parsing will fail and the application will be unaffected. This panic is also reachable by calling cipher.KeyUnwrap() directly with any ciphertext parameter less than 16 bytes long, but calling this function directly is less common. Panics can lead to denial of service. This vulnerability is fixed in 4.1.4 and 3.0.5.

Publication Date April 7, 2026, 2:17 a.m.
Registration Date April 15, 2026, 11:27 a.m.
Last Update April 7, 2026, 10:20 p.m.
Related information, measures and tools
Common Vulnerabilities List