rust-lang rust 检查时间与使用时间(toctou)的竞争条件

admin 2023-11-30 13:19:01 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
中危 rust-lang rust 检查时间与使用时间(toctou)的竞争条件

CVE编号

CVE-2022-21658

利用情况

暂无

补丁情况

官方补丁

披露时间

2022-01-21
漏洞描述
Rust是Mozilla基金会的一款通用、编译型编程语言。 Rust 中存在竞争条件问题漏洞,该漏洞源于产品的'std:: fs:: remove_dir_all'函数未对用户权限进行有效验证。攻击者可通过该漏洞删除不能访问的文件和目录。 受影响系统:Rust 1.0.0 - 1.58.0 版本
解决建议
目前厂商已发布升级补丁以修复漏洞,补丁获取链接:https://github.com/rust-lang/rust/security/advisories/GHSA-r9cc-f5pr-p3j2
参考链接
https://blog.rust-lang.org/2022/01/20/cve-2022-21658.html
https://github.com/rust-lang/rust/pull/93110
https://github.com/rust-lang/rust/pull/93110/commits/32ed6e599bb4722efefd78bb...
https://github.com/rust-lang/rust/pull/93110/commits/406cc071d6cfdfdb678bf3d8...
https://github.com/rust-lang/rust/pull/93110/commits/4f0ad1c92ca08da6e8dc1783...
https://github.com/rust-lang/rust/security/advisories/GHSA-r9cc-f5pr-p3j2
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://security.gentoo.org/glsa/202210-09
https://support.apple.com/kb/HT213182
https://support.apple.com/kb/HT213183
https://support.apple.com/kb/HT213186
https://support.apple.com/kb/HT213193
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 rust-lang rust * From (including) 1.0.0 Up to (including) 1.58.0
运行在以下环境
系统 amazon_2 rust * Up to (excluding) 1.61.0-2.amzn2.0.1
运行在以下环境
系统 anolis_os_8 rls * Up to (excluding) 1.58.1-1
运行在以下环境
系统 debian_10 rustc * Up to (including) 1.41.1+dfsg1-1~deb10u1
运行在以下环境
系统 debian_11 rustc * Up to (including) 1.48.0+dfsg1-2
运行在以下环境
系统 debian_12 rustc * Up to (excluding) 1.57.0+dfsg1-1
运行在以下环境
系统 debian_9 rustc * Up to (including) 1.34.2+dfsg1-1~deb9u1
运行在以下环境
系统 debian_sid rustc * Up to (excluding) 1.57.0+dfsg1-1
运行在以下环境
系统 fedora_34 afterburn-dracut * Up to (excluding) 1.58.1-1.fc34
运行在以下环境
系统 fedora_35 rust-afterburn-debugsource * Up to (excluding) 1.58.1-1.fc35
运行在以下环境
系统 fedora_36 afterburn-debuginfo * Up to (excluding) 5.2.0-3.fc36
运行在以下环境
系统 fedora_EPEL_7 llvm13-static * Up to (excluding) 13.0.1-1.el7
运行在以下环境
系统 opensuse_Leap_15.3 rust1.57 * Up to (excluding) 1.56.1-150300.7.6.1
运行在以下环境
系统 opensuse_Leap_15.4 cargo * Up to (excluding) 1.53.0-22.1
运行在以下环境
系统 oracle_8 oraclelinux-release * Up to (excluding) 1.58.1-1.module+el8.6.0+20563+1eb4e043
运行在以下环境
系统 ubuntu_20.04 rustc * Up to (excluding) 1.59.0+dfsg1~ubuntu1~llvm-1~ubuntu1~20.04.2
阿里云评分 5.6
  • 攻击路径 本地
  • 攻击复杂度 复杂
  • 权限要求 无需权限
  • 影响范围 全局影响
  • EXP成熟度 未验证
  • 补丁情况 官方补丁
  • 数据保密性 数据泄露
  • 数据完整性 无影响
  • 服务器危害 无影响
  • 全网数量 N/A
CWE-ID 漏洞类型
CWE-363 允许符号链接跟随的竞争条件
CWE-367 检查时间与使用时间(TOCTOU)的竞争条件
- 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