製品・ソフトウェアに関する情報
wolfSSL Inc.のwolfSSLにおける境界外読み取りに関する脆弱性
Title wolfSSL Inc.のwolfSSLにおける境界外読み取りに関する脆弱性
Summary

SM2/SM3証明書の署名検証中にヒープの境界外読み取りが発生します。SM3を用いたSM2署名を持つ証明書を解析する際に、Subject Key Identifierの計算で公開鍵が少なくとも65バイトであることを確認せずに、公開鍵の後続65バイトを読み取ります。公開鍵が65バイト未満の場合、ヒープの境界外読み取りが発生し、潜在的にクラッシュ(サービス拒否)を引き起こす可能性があります。境界外書き込みは発生しません。この問題はSM2サポートを有効(--enable-sm2または--enable-all)にしてビルドしたものにのみ影響します。

Possible impacts ・当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 ・当該ソフトウェアが扱う情報について、書き換えは発生しません。 ・当該ソフトウェアが完全に停止する可能性があります。 
Solution

ベンダ情報を参照して適切な対策を実施してください。

Publication Date June 25, 2026, midnight
Registration Date June 29, 2026, 11:26 a.m.
Last Update June 29, 2026, 11:26 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
wolfSSL Inc.
wolfSSL 5.6.4 以上 5.9.2 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年06月29日]
  掲載
June 29, 2026, 11:26 a.m.

NVD Vulnerability Information
CVE-2026-12340
Summary

Out-of-bounds heap read during SM2/SM3 certificate signature verification. When parsing a certificate with an SM3wSM2 signature, the Subject Key Identifier computation reads the trailing 65 bytes of the public key without checking that the key is at least that long. A public key shorter than 65 bytes results in an out-of-bounds heap read, leading to a potential crash (denial of service); there is no out-of-bounds write. Note this only affects builds with SM2 support (--enable-sm2 or --enable-all).

Publication Date June 26, 2026, 5:17 a.m.
Registration Date June 27, 2026, 4:30 a.m.
Last Update June 27, 2026, 3:54 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:* 5.6.4 5.9.2
Related information, measures and tools
Common Vulnerabilities List