NVD Vulnerability Detail
Search Exploit, PoC
CVE-2026-34610
Summary

The leancrypto library is a cryptographic library that exclusively contains only PQC-resistant cryptographic algorithms. Prior to version 1.7.1, lc_x509_extract_name_segment() casts size_t vlen to uint8_t when storing the Common Name (CN) length. An attacker who crafts a certificate with CN = victim's CN + 256 bytes padding gets cn_size = (uint8_t)(256 + N) = N, where N is the victim's CN length. The first N bytes of the attacker's CN are the victim's identity. After parsing, the attacker's certificate has an identical CN to the victim's — enabling identity impersonation in PKCS#7 verification, certificate chain matching, and code signing. This issue has been patched in version 1.7.1.

Publication Date April 3, 2026, 3:16 a.m.
Registration Date April 27, 2026, 12:21 p.m.
Last Update April 24, 2026, 10:01 p.m.
CVSS3.1 : MEDIUM
スコア 5.9
Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR) 不要
利用者の関与(UI) 不要
影響の想定範囲(S) 変更なし
機密性への影響(C) なし
完全性への影響(I)
可用性への影響(A) なし
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:leancrypto:leancrypto:*:*:*:*:*:*:*:* 1.7.1
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
leancryptoにおける数値型間の変換の誤りに関する脆弱性
Title leancryptoにおける数値型間の変換の誤りに関する脆弱性
Summary

leancryptoライブラリはPQC耐性暗号アルゴリズムのみを含む暗号ライブラリです。バージョン1.7.1以前では、lc_x509_extract_name_segment()関数がサイズ_t型のvlenをCommon Name(CN)の長さを保存する際にuint8_tにキャストしていました。攻撃者がCNに被害者のCNに256バイトのパディングを加えた証明書を作成すると、cn_size = (uint8_t)(256 + N) = Nとなります。ここでNは被害者のCNの長さです。攻撃者のCNの最初のNバイトは被害者のIDとなります。解析後、攻撃者の証明書は被害者と同一のCNを持つようになり、PKCS#7検証、証明書チェーンの照合、およびコード署名において身分のなりすましが可能になります。この問題はバージョン1.7.1で修正されました。

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

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

Publication Date April 2, 2026, midnight
Registration Date April 27, 2026, 11:18 a.m.
Last Update April 27, 2026, 11:18 a.m.
Affected System
leancrypto
leancrypto 1.7.1 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年04月27日]
  掲載
April 27, 2026, 11:18 a.m.