中危 squashfs-tools 路径遍历漏洞
CVE编号
CVE-2021-40153利用情况
POC 已公开补丁情况
官方补丁披露时间
2021-08-27漏洞描述
squashfs-tools是一个开源软件包。 Squashfs-Tools 4.5版本存在安全漏洞,该漏洞源于在软件中的unsquash-1.c中的squashfs_opendir函数负责存储目录条目中的文件名,然后unsquashfs使用它在unsquash期间创建新文件。函数文件名操作对于目标目录外的遍历并不进行验证,因此文件名被允许写入到目标目录外的位置。解决建议
目前厂商已发布升级补丁以修复漏洞,补丁获取链接:https://github.com/plougher/squashfs-tools/commit/79b5a555058eef4e1e7ff220c344d39f8cd09646受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | squashfs-tools_project | squashfs-tools | 4.5 | - | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.11 | squashfs-tools | * | Up to (excluding) 4.5-r0 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.12 | squashfs-tools | * | Up to (excluding) 4.5-r0 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.13 | squashfs-tools | * | Up to (excluding) 4.5-r0 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.14 | squashfs-tools | * | Up to (excluding) 4.5-r0 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.15 | squashfs-tools | * | Up to (excluding) 4.5-r0 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.16 | squashfs-tools | * | Up to (excluding) 4.5-r0 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.17 | squashfs-tools | * | Up to (excluding) 4.5-r0 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.18 | squashfs-tools | * | Up to (excluding) 4.5-r0 | |||||
运行在以下环境 | |||||||||
系统 | alpine_edge | squashfs-tools | * | Up to (excluding) 4.5-r0 | |||||
运行在以下环境 | |||||||||
系统 | amazon_2 | squashfs-tools | * | Up to (excluding) 4.3-0.21.gitaae0aff4.amzn2.0.2 | |||||
运行在以下环境 | |||||||||
系统 | anolis_os_23 | squashfs-tools | * | Up to (excluding) 4.6.1-1 | |||||
运行在以下环境 | |||||||||
系统 | debian_10 | squashfs-tools | * | Up to (excluding) 1:4.3-12+deb10u1 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | squashfs-tools | * | Up to (excluding) 1:4.4-2+deb11u1 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | squashfs-tools | * | Up to (excluding) 1:4.5-2 | |||||
运行在以下环境 | |||||||||
系统 | debian_9 | squashfs-tools | * | Up to (excluding) 1:4.3-3+deb9u2 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | squashfs-tools | * | Up to (excluding) 1:4.5-2 | |||||
运行在以下环境 | |||||||||
系统 | fedora_33 | squashfs-tools | * | Up to (excluding) 4.5-2.fc33 | |||||
运行在以下环境 | |||||||||
系统 | fedora_34 | squashfs-tools | * | Up to (excluding) 4.5-2.fc34 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_aarch64_V10SP2 | squashfs-tools | * | Up to (excluding) 4.4-5.ky10 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_x86_64_V10SP2 | squashfs-tools | * | Up to (excluding) 4.4-5.ky10 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_18.04 | squashfs-tools | * | Up to (excluding) 1:4.3-6ubuntu0.18.04.3 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_18.04.5_lts | squashfs-tools | * | Up to (excluding) 1:4.3-6ubuntu0.18.04.3 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_20.04 | squashfs-tools | * | Up to (excluding) 1:4.4-1ubuntu0.1 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_21.04 | squashfs-tools | * | Up to (excluding) 1:4.4-2ubuntu0.1 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_21.10 | squashfs-tools | * | Up to (excluding) 1:4.4-2ubuntu1 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_22.04 | squashfs-tools | * | Up to (excluding) 1:4.4-2ubuntu1 | |||||
- 攻击路径 远程
- 攻击复杂度 复杂
- 权限要求 无需权限
- 影响范围 越权影响
- EXP成熟度 POC 已公开
- 补丁情况 官方补丁
- 数据保密性 无影响
- 数据完整性 传输被破坏
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-22 | 对路径名的限制不恰当(路径遍历) |
Exp相关链接
- avd.aliyun.com
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论