中危 PHP 易受 Marvin 攻击 (CVE-2024-2408)

CVE编号

CVE-2024-2408

利用情况

暂无

补丁情况

官方补丁

披露时间

2024-06-10
漏洞描述
The openssl_private_decrypt function in PHP, when using PKCS1 padding (OPENSSL_PKCS1_PADDING, which is the default), is vulnerable to the Marvin Attack unless it is used with an OpenSSL version that includes the changes from this pull request: https://github.com/openssl/openssl/pull/13817 (rsa_pkcs1_implicit_rejection). These changes are part of OpenSSL 3.2 and have also been backported to stable versions of various Linux distributions, as well as to the PHP builds provided for Windows since the previous release. All distributors and builders should ensure that this version is used to prevent PHP from being vulnerable.

PHP Windows builds for the versions 8.1.29, 8.2.20 and 8.3.8 and above include OpenSSL patches that fix the vulnerability.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 php php * From
(including)
8.1.0
Up to
(excluding)
8.1.29
运行在以下环境
应用 php php * From
(including)
8.2.0
Up to
(excluding)
8.2.20
运行在以下环境
应用 php php * From
(including)
8.3.0
Up to
(excluding)
8.3.8
运行在以下环境
系统 fedoraproject fedora 40 -
运行在以下环境
系统 fedora_39 php * Up to
(excluding)
8.2.20-1.fc39
运行在以下环境
系统 fedora_40 php * Up to
(excluding)
8.3.8-1.fc40
阿里云评分
5.4
  • 攻击路径
    本地
  • 攻击复杂度
    困难
  • 权限要求
    管控权限
  • 影响范围
    有限影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    无影响
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-203 通过差异性导致的信息暴露
阿里云安全产品覆盖情况