tempfile.mkdtemp() 可供 Windows 上的所有用户读取和写入 (CVE-2024-4030)

admin 2024-05-21 23:24:11 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
tempfile.mkdtemp() 可供 Windows 上的所有用户读取和写入 (CVE-2024-4030)

CVE编号

CVE-2024-4030

利用情况

暂无

补丁情况

N/A

披露时间

2024-05-08
漏洞描述
On Windows a directory returned by tempfile.mkdtemp() would not always have permissions set to restrict reading and writing to the temporary directory by other users, instead usually inheriting the correct permissions from the default location. Alternate configurations or users without a profile directory may not have the intended permissions. If you’re not using Windows or haven’t changed the temporary directory location then you aren’t affected by this vulnerability. On other platforms the returned directory is consistently readable and writable only by the current user. This issue was caused by Python not supporting Unix permissions on Windows. The fix adds support for Unix “700” for the mkdir function on Windows which is used by mkdtemp() to ensure the newly created directory has the proper permissions.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://github.com/python/cpython/commit/81939dad77001556c527485d31a2d0f4a759033e
https://github.com/python/cpython/commit/8ed546679524140d8282175411fd141fe7df070d
https://github.com/python/cpython/issues/118486
https://mail.python.org/archives/list/[email protected]/thread/PRG...
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
系统 debian_10 python2.7 * Up to (excluding) 2.7.16-2+deb10u4
运行在以下环境
系统 debian_11 python2.7 * Up to (excluding) 2.7.18-8+deb11u1
运行在以下环境
系统 debian_12 python3.11 * Up to (excluding) 3.11.2-6
CVSS3评分 N/A
  • 攻击路径 N/A
  • 攻击复杂度 N/A
  • 权限要求 N/A
  • 影响范围 N/A
  • 用户交互 N/A
  • 可用性 N/A
  • 保密性 N/A
  • 完整性 N/A
N/A
CWE-ID 漏洞类型
- avd.aliyun.com
weinxin
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论:0   参与:  0