rust-lang cargo不安全的预留继承权限漏洞(CVE-2023-38497)

admin 2023-11-29 21:34:50 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
中危 rust-lang cargo不安全的预留继承权限漏洞(CVE-2023-38497)

CVE编号

CVE-2023-38497

利用情况

暂无

补丁情况

官方补丁

披露时间

2023-08-05
漏洞描述
Cargo 下载 Rust 项目的依赖并编译项目。在 Rust 版本 1.71.1 之前的 Cargo 版本 0.72.2 存在漏洞,未在 UNIX-like 系统上考虑 umask。如果用户下载包含被任何本地用户可写的文件的 crate,另一个本地用户可以利用这个漏洞来更改当前用户编译和执行的源代码。为了防止现有缓存的提取成为可利用的,Rust 1.71.1 或更高版本中包含的 Cargo 二进制文件版本 0.72.2 会自动清除旧版 Cargo 生成的缓存。解决方法是在系统中配置,防止其他本地用户访问 Cargo 目录,该目录通常位于 `~/.cargo`。
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://en.wikipedia.org/wiki/Umask
https://github.com/rust-lang/cargo/commit/d78bbf4bde3c6b95caca7512f537c6f9721426ff
https://github.com/rust-lang/cargo/pull/12443
https://github.com/rust-lang/cargo/security/advisories/GHSA-j3xp-wfr4-hx87
https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2023-38497
https://lists.fedoraproject.org/archives/list/[email protected]...
https://lists.fedoraproject.org/archives/list/[email protected]...
https://www.rust-lang.org/policies/security
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 rust-lang cargo * Up to (excluding) 0.72.2
运行在以下环境
系统 alpine_3.18 rust * Up to (excluding) 1.71.1-r0
运行在以下环境
系统 alpine_edge rust * Up to (excluding) 1.71.1-r0
运行在以下环境
系统 amazon_2 rust * Up to (excluding) 1.68.2-1.amzn2.0.3
运行在以下环境
系统 amazon_2023 rust * Up to (excluding) 1.68.2-1.amzn2023.0.2
运行在以下环境
系统 anolis_os_8 rust-analysis * Up to (excluding) 1.66.1-2
运行在以下环境
系统 debian_10 cargo * Up to (including) 0.43.1-3~deb10u1
运行在以下环境
系统 debian_11 cargo * Up to (including) 0.47.0-3
运行在以下环境
系统 debian_12 cargo * Up to (including) 0.66.0+ds1-1
运行在以下环境
系统 debian_sid cargo * Up to (including) 0.66.0+ds1-1
运行在以下环境
系统 fedoraproject fedora 38 -
运行在以下环境
系统 fedora_37 rust-doc * Up to (excluding) 1.71.1-1.fc37
运行在以下环境
系统 fedora_38 rust-doc * Up to (excluding) 1.71.1-1.fc38
运行在以下环境
系统 fedora_EPEL_7 rust-analyzer * Up to (excluding) 1.71.1-1.el7
运行在以下环境
系统 opensuse_Leap_15.4 rust1.71 * Up to (excluding) 1.71.1-150400.9.6.1
运行在以下环境
系统 opensuse_Leap_15.5 rust1.71 * Up to (excluding) 1.71.1-150400.9.6.1
运行在以下环境
系统 oracle_8 oraclelinux-release * Up to (excluding) 1.66.1-2.module+el8.8.0+21152+49720d82
运行在以下环境
系统 oracle_9 oraclelinux-release * Up to (excluding) 1.66.1-2.el9_2
运行在以下环境
系统 redhat_9 cargo * Up to (excluding) 1.66.1-2.el9_2
阿里云评分 6.0
  • 攻击路径 本地
  • 攻击复杂度 复杂
  • 权限要求 普通权限
  • 影响范围 越权影响
  • EXP成熟度 未验证
  • 补丁情况 官方补丁
  • 数据保密性 无影响
  • 数据完整性 无影响
  • 服务器危害 无影响
  • 全网数量 N/A
CWE-ID 漏洞类型
CWE-278 不安全的预留继承权限
- avd.aliyun.com
weinxin
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
N/A Ali_nvd

N/A

N/ACVE编号 CVE-2024-9120利用情况 暂无补丁情况 N/A披露时间 2024-09-23漏洞描述Use after free in Dawn
评论:0   参与:  0