NVD Vulnerability Detail
Search Exploit, PoC
CVE-2022-3358
Summary

OpenSSL supports creating a custom cipher via the legacy EVP_CIPHER_meth_new() function and associated function calls. This function was deprecated in OpenSSL 3.0 and application authors are instead encouraged to use the new provider mechanism in order to implement custom ciphers. OpenSSL versions 3.0.0 to 3.0.5 incorrectly handle legacy custom ciphers passed to the EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() and EVP_CipherInit_ex2() functions (as well as other similarly named encryption and decryption initialisation functions). Instead of using the custom cipher directly it incorrectly tries to fetch an equivalent cipher from the available providers. An equivalent cipher is found based on the NID passed to EVP_CIPHER_meth_new(). This NID is supposed to represent the unique NID for a given cipher. However it is possible for an application to incorrectly pass NID_undef as this value in the call to EVP_CIPHER_meth_new(). When NID_undef is used in this way the OpenSSL encryption/decryption initialisation function will match the NULL cipher as being equivalent and will fetch this from the available providers. This will succeed if the default provider has been loaded (or if a third party provider has been loaded that offers this cipher). Using the NULL cipher means that the plaintext is emitted as the ciphertext. Applications are only affected by this issue if they call EVP_CIPHER_meth_new() using NID_undef and subsequently use it in a call to an encryption/decryption initialisation function. Applications that only use SSL/TLS are not impacted by this issue. Fixed in OpenSSL 3.0.6 (Affected 3.0.0-3.0.5).

Publication Date Oct. 12, 2022, 12:15 a.m.
Registration Date Oct. 12, 2022, 10:01 a.m.
Last Update Nov. 21, 2024, 4:19 p.m.
CVSS3.1 : HIGH
スコア 7.5
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/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:openssl:openssl:*:*:*:*:*:*:*:* 3.0.0 3.0.6
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
OpenSSL の NID_undef を使用したカスタム暗号における NULL 暗号化の脆弱性
Title OpenSSL の NID_undef を使用したカスタム暗号における NULL 暗号化の脆弱性
Summary

OpenSSL の NID_undef を使用してカスタム暗号を作成した場合、NULL 暗号化が発生する可能性があります。 OpenSSL Project より、<a href="https://www.openssl.org/news/secadv/20221011.txt" target="blank">OpenSSL Security Advisory [11 October 2022]</a> が公開されました。 OpenSSLには、次の脆弱性が存在します。 深刻度 - 低 (Severity: Low) カスタム暗号作成をサポートする EVP_CIPHER_meth_new() 関数および関連する関数にて、カスタム暗号を誤って処理することに起因し NULL 暗号化が発生する問題 (CVE-2022-3358) が存在します。 対象の関数は既に廃止予定となっているため、OpenSSL の開発者は、アプリケーション作成時にカスタム暗号実装のため新しいプロバイダメカニズムの利用を推奨しています。

Possible impacts NULL 暗号化が発生すると、暗号文として平文が出力されます。 
Solution

【2022/10/13 追記】 本件を 2022 年 10 月 12 日に公表した時点では、対策版としてOpenSSL 3.0.6がリリースされていましたが、これに重大な不具合が検出されたとして 10 月 13 日時点でリリースが取り下げられました。 開発者によると、不具合に対応する OpenSSL 3.0.7 を準備中のため、リリースまでは OpenSSL 3.0.5 の使用を推奨するとのことです。 【2022/11/2 追記】 11月1日に OpenSSL 3.0.6 にて検出された不具合を解消した OpenSSL 3.0.7 がリリースされました。

Publication Date Oct. 12, 2022, midnight
Registration Date Oct. 13, 2022, 3:57 p.m.
Last Update June 13, 2024, 11:41 a.m.
Affected System
OpenSSL Project
OpenSSL 3.0.0 から 3.0.5
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
3 [2024年06月13日]
  CVSS による深刻度:内容を更新
  CWE による脆弱性タイプ一覧:内容を更新
June 13, 2024, 11:47 a.m.
1 [2022年10月13日]   掲載 Oct. 13, 2022, 2:49 p.m.
2 [2022年11月04日]
  対策:内容を更新
  ベンダ情報:OpenSSL (OpenSSL 3.0 Series Release Notes) を追加
Nov. 4, 2022, 1:50 p.m.