中危 Composer 易受通过恶意 git/hg 分支名称进行命令注入攻击 (CVE-2024-35242)

CVE编号

CVE-2024-35242

利用情况

暂无

补丁情况

官方补丁

披露时间

2024-06-11
漏洞描述
Composer is a dependency manager for PHP. On the 2.x branch prior to versions 2.2.24 and 2.7.7, the `composer install` command running inside a git/hg repository which has specially crafted branch names can lead to command injection. This requires cloning untrusted repositories. Patches are available in version 2.2.24 for 2.2 LTS or 2.7.7 for mainline. As a workaround, avoid cloning potentially compromised repositories.

解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
系统 alpine_3.19 composer * Up to
(excluding)
2.7.7-r0
运行在以下环境
系统 alpine_3.20 composer * Up to
(excluding)
2.7.7-r0
运行在以下环境
系统 fedora_39 composer * Up to
(excluding)
2.7.7-1.fc39
运行在以下环境
系统 fedora_40 composer * Up to
(excluding)
2.7.7-1.fc40
运行在以下环境
系统 fedora_EPEL_9 composer * Up to
(excluding)
2.7.7-1.el9
阿里云评分
6.6
  • 攻击路径
    远程
  • 攻击复杂度
    复杂
  • 权限要求
    普通权限
  • 影响范围
    全局影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    无影响
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    N/A
CWE-ID 漏洞类型
阿里云安全产品覆盖情况