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.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
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 |
- 攻击路径 N/A
- 攻击复杂度 N/A
- 权限要求 N/A
- 影响范围 N/A
- 用户交互 N/A
- 可用性 N/A
- 保密性 N/A
- 完整性 N/A
CWE-ID | 漏洞类型 |
Exp相关链接

版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论