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

openCryptokiはPKCS#11ライブラリであり、LinuxおよびAIX向けのツールを提供しています。バージョン3.26.0以下では、共有の共通ライブラリ(asn1.c)内のBER/DERデコード関数が生のポインタを受け入れますが、バッファ長パラメータを受け取らず、実際のバッファ境界に対して検証せずに攻撃者が制御するBER長フィールドを信頼しています。すべてのプリミティブデコーダーが影響を受けます:ber_decode_INTEGER、ber_decode_SEQUENCE、ber_decode_OCTET_STRING、ber_decode_BIT_STRING、およびber_decode_CHOICEです。さらに、ber_decode_INTEGERはエンコードされた長さがゼロの場合に整数のアンダーフローを引き起こす可能性があります。攻撃者がC_CreateObjectやC_UnwrapKeyなどのPKCS#11操作、ディスクからのトークン読み込み、またはリモートバックエンド通信を介して不正なBERエンコードされた暗号オブジェクトを提供すると、境界外読み取りを引き起こす可能性があります。脆弱なコードが共有共通ライブラリに存在するため、すべてのトークンバックエンド(Soft、ICA、CCA、TPM、EP11、ICSF)に影響します。修正パッチはコミットed378f463ef73364c89feb0fc923f4dc867332a3で提供されています。

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

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

Publication Date April 16, 2026, midnight
Registration Date April 24, 2026, 11:41 a.m.
Last Update April 24, 2026, 11:41 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
openCryptoki Project
openCryptoki 3.26.0 およびそれ以前
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年04月24日]
  掲載
April 24, 2026, 11:41 a.m.

NVD Vulnerability Information
CVE-2026-40253
Summary

openCryptoki is a PKCS#11 library and provides tooling for Linux and AIX. In versions 3.26.0 and below, the BER/DER decoding functions in the shared common library (asn1.c) accept a raw pointer but no buffer length parameter, and trust attacker-controlled BER length fields without validating them against actual buffer boundaries. All primitive decoders are affected: ber_decode_INTEGER, ber_decode_SEQUENCE, ber_decode_OCTET_STRING, ber_decode_BIT_STRING, and ber_decode_CHOICE. Additionally, ber_decode_INTEGER can produce integer underflows when the encoded length is zero. An attacker supplying a malformed BER-encoded cryptographic object through PKCS#11 operations such as C_CreateObject or C_UnwrapKey, token loading from disk, or remote backend communication can trigger out-of-bounds reads. This affects all token backends (Soft, ICA, CCA, TPM, EP11, ICSF) since the vulnerable code is in the shared common library. A patch is available thorugh commit ed378f463ef73364c89feb0fc923f4dc867332a3.

Publication Date April 17, 2026, 8:16 a.m.
Registration Date April 18, 2026, 4:10 a.m.
Last Update April 23, 2026, 5:15 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:opencryptoki_project:opencryptoki:*:*:*:*:*:*:*:* 3.26.0
Related information, measures and tools
Common Vulnerabilities List