OpenSSL ProjectのOpenSSLにおける境界外読み取りに関する脆弱性
タイトル OpenSSL ProjectのOpenSSLにおける境界外読み取りに関する脆弱性
概要

問題の概要:作成されたDERエンコードされたASN.1構造を解析する際に、内容が2ギガバイトを超えるプリミティブ要素が存在すると、64ビットのUnixおよびUnix系プラットフォームでヒープバッファオーバーリードが発生する可能性があります。影響の概要:ヒープバッファオーバーリードにより、アプリケーションがクラッシュしてサービス拒否が発生したり、入力バッファの末尾を超えたメモリ内容がデコードされたASN.1オブジェクトに読み込まれる恐れがあります。通常、このようなASN.1要素は切り捨てられます。OpenSSLのASN.1デコーダの整数切り捨てにより、ASN.1プリミティブ要素の内容長さが2ギガバイトを超えた場合に正しく処理されません。最悪の場合、切り捨てられた長さが終端のゼロバイトを探索する要求として扱われ、OpenSSLが割り当てられたバッファの範囲外または範囲内未満を読み取る可能性があります。攻撃者が提供するデータをd2i_X509()、d2i_PKCS7()、またはその他のd2i_*デコード関数に渡すアプリケーションがこの問題の影響を受けます。OpenSSLのコマンドラインツールは、BIO層を通して読み込まれるデータが影響を受けるコードに到達する前に検証されるため、この脆弱性の影響を受けません。この問題は64ビットのUnixおよびUnix系プラットフォームのみに影響し、32ビットプラットフォームおよび64ビットWindowsは影響を受けません。4.0、3.6、3.5、3.4、および3.0のFIPSモジュールは、この問題の影響を受けません。該当コードはOpenSSL FIPSモジュールの境界外に存在するためです。

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

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

公表日 2026年6月9日0:00
登録日 2026年6月16日13:38
最終更新日 2026年6月16日13:38
CVSS3.0 : 重要
スコア 7.5
ベクター CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
影響を受けるシステム
OpenSSL Project
OpenSSL 1.0.2 以上 1.0.2zq 未満
OpenSSL 1.1.1 以上 1.1.1zh 未満
OpenSSL 3.0.0 以上 3.0.21 未満
OpenSSL 3.4.0 以上 3.4.6 未満
OpenSSL 3.5.0 以上 3.5.7 未満
OpenSSL 3.6.0 以上 3.6.3 未満
OpenSSL 4.0.0
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
変更履歴
No 変更内容 変更日
1 [2026年06月16日]
  掲載
2026年6月16日13:38

NVD脆弱性情報
CVE-2026-34180
概要

Issue summary: Parsing a crafted DER-encoded ASN.1 structure with a primitive
element whose content exceeds 2 gigabytes in length may cause a heap buffer
over-read on 64-bit Unix and Unix-like platforms.

Impact summary: The heap buffer over-read may crash the application (Denial of
Service) or to load into the decoded ASN.1 object contents of memory beyond the
end of the input buffer. More typically such ASN.1 elements would instead be
truncated.

An integer truncation in OpenSSL's ASN.1 decoder causes the content length of
an ASN.1 primitive element to be mishandled when it exceeds 2 gigabytes. In the
worst case the truncated length is treated as a request to scan the binary
content for a terminating zero byte, possibly causing OpenSSL to read either
less than or beyond the end of the allocated buffer.

Applications that pass attacker-supplied data to d2i_X509(), d2i_PKCS7(), or
any other d2i_* decoding function are affected. OpenSSL's own command-line
tools are not vulnerable, as data read through the BIO layer is checked before
it reaches the affected code. The issue only affects 64-bit Unix and Unix-like
platforms; 32-bit platforms and 64-bit Windows are not affected.

The FIPS modules in 4.0, 3.6, 3.5, 3.4 and 3.0 are not affected by this issue,
as the affected code is outside the OpenSSL FIPS module boundary.

公表日 2026年6月10日2:17
登録日 2026年6月10日4:16
最終更新日 2026年6月16日3:13
影響を受けるソフトウェアの構成
構成1 以上 以下 より上 未満
cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:* 1.0.2 1.0.2zq
cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:* 1.1.1 1.1.1zh
cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:* 3.0.0 3.0.21
cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:* 3.4.0 3.4.6
cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:* 3.5.0 3.5.7
cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:* 3.6.0 3.6.3
cpe:2.3:a:openssl:openssl:4.0.0:-:*:*:*:*:*:*
関連情報、対策とツール
共通脆弱性一覧