中危 sharpziplib_project sharpziplib 对路径名的限制不恰当(路径遍历)
CVE编号
CVE-2021-32842利用情况
暂无补丁情况
官方补丁披露时间
2022-01-27漏洞描述
SharpZipLib (or #ziplib) is a Zip, GZip, Tar and BZip2 library. Starting version 1.0.0 and prior to version 1.3.3, a check was added if the destination file is under a destination directory. However, it is not enforced that `_baseDirectory` ends with slash. If the _baseDirectory is not slash terminated like `/home/user/dir` it is possible to create a file with a name thats begins as the destination directory one level up from the directory, i.e. `/home/user/dir.sh`. Because of the file name and destination directory constraints, the arbitrary file creation impact is limited and depends on the use case. Version 1.3.3 fixed this vulnerability.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接 |
|
---|---|
https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3 | |
https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/ |
受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | sharpziplib_project | sharpziplib | * | From (including) 1.0.0 | Up to (excluding) 1.3.3 | ||||
运行在以下环境 | |||||||||
系统 | debian_10 | mono | * | Up to (excluding) 5.18.0.240+dfsg-3 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | mono | * | Up to (excluding) 6.8.0.105+dfsg-3.3~deb11u1 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | mono | * | Up to (excluding) 6.8.0.105+dfsg-3.3 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | mono | * | Up to (excluding) 6.8.0.105+dfsg-3.5 | |||||
- 攻击路径 本地
- 攻击复杂度 困难
- 权限要求 管控权限
- 影响范围 有限影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 无影响
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-22 | 对路径名的限制不恰当(路径遍历) |
Exp相关链接

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