中危 openssl openssl 空指针解引用

CVE编号

CVE-2022-3358

利用情况

暂无

补丁情况

官方补丁

披露时间

2022-10-11
漏洞描述
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).
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 openssl openssl * From
(including)
3.0.0
Up to
(excluding)
3.0.6
运行在以下环境
系统 alma_linux_9 openssl * Up to
(excluding)
3.0.7-6.el9_2
运行在以下环境
系统 alpine_3.15 openssl3 * Up to
(excluding)
3.0.6-r0
运行在以下环境
系统 alpine_3.16 openssl3 * Up to
(excluding)
3.0.6-r0
运行在以下环境
系统 alpine_3.17 openssl * Up to
(excluding)
3.0.6-r0
运行在以下环境
系统 alpine_3.18 openssl * Up to
(excluding)
3.0.6-r0
运行在以下环境
系统 alpine_3.19 openssl * Up to
(excluding)
3.0.6-r0
运行在以下环境
系统 amazon_2023 openssl * Up to
(excluding)
3.0.8-1.amzn2023.0.1
运行在以下环境
系统 debian_10 openssl * Up to
(excluding)
1.1.1n-0+deb10u6
运行在以下环境
系统 debian_11 openssl * Up to
(excluding)
1.1.1n-0+deb11u5
运行在以下环境
系统 debian_12 openssl * Up to
(excluding)
3.0.7-1
运行在以下环境
系统 fedora_EPEL_8 openssl3 * Up to
(excluding)
3.0.7-5.el8.1
运行在以下环境
系统 opensuse_Leap_15.4 openssl * Up to
(excluding)
3-3.0.1-150400.4.11.1
运行在以下环境
系统 oracle_9 openssl * Up to
(excluding)
3.0.7-6.0.1.el9_2
运行在以下环境
系统 redhat_9 openssl * Up to
(excluding)
3.0.7-6.el9_2
运行在以下环境
系统 ubuntu_22.04 openssl * Up to
(excluding)
3.0.2-0ubuntu1.7
运行在以下环境
系统 ubuntu_22.10 openssl * Up to
(excluding)
3.0.5-2ubuntu2
阿里云评分
6.3
  • 攻击路径
    本地
  • 攻击复杂度
    复杂
  • 权限要求
    无需权限
  • 影响范围
    越权影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    数据泄露
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-476 空指针解引用
阿里云安全产品覆盖情况