Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2021-32842— Path Traversal in SharpZipLib

Quick assessment

Affected
icsharpcode sharpziplib
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

SharpZipLib(#ziplib,前称NZipLib)是ICSharpCode(Icsharpcode)团队的一个开源的用在.NET平台中的C#压缩解压库,它支持解压和压缩Zip、GZip、BZip2、Tar等格式的文件。 SharpZipLib 存在安全漏洞,该漏洞源于不强制 _baseDirectory 以斜线结尾。 如果 _baseDirectory 没有像 /home/user/dir 那样以斜线结尾,则可以创建一个文件,其名称以目标目录开始,比该目录上一层,即 /home/user/dir

CVSS 4.0 · Medium EPSS 0.90% · P58

Possible ATT&CK Techniques 1 AI

T1564.004 · NTFS File Attributes
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2021-32842

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Path Traversal in SharpZipLib
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
SharpZipLib 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
SharpZipLib(#ziplib,前称NZipLib)是ICSharpCode(Icsharpcode)团队的一个开源的用在.NET平台中的C#压缩解压库,它支持解压和压缩Zip、GZip、BZip2、Tar等格式的文件。 SharpZipLib 存在安全漏洞,该漏洞源于不强制 _baseDirectory 以斜线结尾。 如果 _baseDirectory 没有像 /home/user/dir 那样以斜线结尾,则可以创建一个文件,其名称以目标目录开始,比该目录上一层,即 /home/user/dir
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
icsharpcode sharpziplib 1.3.3 ~ 1.3.3 -

II. Public POCs for CVE-2021-32842

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2021-32842

登录查看更多情报信息。

Other References for CVE-2021-32842 (1)

Other References for CVE-2021-32842 (1)

Same Patch Batch · icsharpcode · 2022-01-26 · 3 CVEs total

CVE-2021-32840 7.3 HIGH Path Traversal in SharpZipLib
CVE-2021-32841 4.0 MEDIUM Path Traversal in SharpZipLib

IV. Related Vulnerabilities

V. Comments for CVE-2021-32842

No comments yet


Leave a comment