Skip to content

CVE-2021-32842 Path Traversal in SharpZipLib

MediumCVSS 5.3 EPSS 0.92%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

12 packages: 2 fixed, 1 partially fixed, 9 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/mono(Ubuntu 14.04) = 2.10.8.1-5ubuntu2; = 3.2.3+dfsg-5; = 3.2.3+dfsg-7ubuntu1; = 3.2.8+dfsg-4ubuntu1 +2 more No fix listed No fix yet
ubuntu/mono(Ubuntu 16.04) = 3.2.8+dfsg-4ubuntu4; = 4.2.1.102+dfsg2-5ubuntu1; = 4.2.1.102+dfsg2-7ubuntu4; All versions No fix listed No fix yet
ubuntu/mono(Ubuntu 18.04) = 4.6.2.7+dfsg-1ubuntu1; All versions No fix listed No fix yet
ubuntu/mono(Ubuntu 20.04) = 5.18.0.240+dfsg-3; = 6.8.0.105+dfsg-1; = 6.8.0.105+dfsg-2; All versions No fix listed No fix yet
ubuntu/mono(Ubuntu 22.04) = 6.8.0.105+dfsg-3.2; All versions No fix listed No fix yet
ubuntu/mono(Ubuntu 24.04) = 6.8.0.105+dfsg-3.4; = 6.8.0.105+dfsg-3.5ubuntu1; = 6.8.0.105+dfsg-3.6ubuntu1; = 6.8.0.105+dfsg-3.6ubuntu2 +1 more No fix listed No fix yet
ubuntu/mono(Ubuntu 25.10) = 6.12.0.199+dfsg-3; = 6.12.0.199+dfsg-6; All versions No fix listed No fix yet
ubuntu/mono(Ubuntu 26.04) = 6.12.0.199+dfsg-6; = 6.14.1+ds2-1; = 6.14.1+ds2-2; All versions No fix listed No fix yet
ubuntu/mono(Ubuntu 26.10) = 6.14.1+ds2-2; = 6.14.1+ds2-3; All versions No fix listed No fix yet
icsharpcode sharpziplib >= 1.0.0; >= 1.3.3, < 1.3.3 1.3.3 Partially fixed
nuget SharpZipLib(NuGet) = 1.0.0; = 1.1.0; = 1.2.0; = 1.3.0 +3 more 1.3.3 Fixed
sharpziplib project sharpziplib >= 1.0.0, < 1.3.3 1.3.3 Fixed

Affected products

ProductAffected versionsFixed in
nuget SharpZipLib(NuGet) >= 1.0.0, < 1.3.3 1.3.3
nuget SharpZipLib(NuGet) = 1.0.0 No fix listed
nuget SharpZipLib(NuGet) = 1.1.0 No fix listed
nuget SharpZipLib(NuGet) = 1.2.0 No fix listed
nuget SharpZipLib(NuGet) = 1.3.0 No fix listed
nuget SharpZipLib(NuGet) = 1.3.1 No fix listed
nuget SharpZipLib(NuGet) = 1.3.2 No fix listed
ubuntu/mono(Ubuntu:22.04) All versions No fix listed
sharpziplib project sharpziplib >= 1.0.0, < 1.3.3 1.3.3
ubuntu/mono(Ubuntu:24.04) All versions No fix listed
ubuntu/mono(Ubuntu:26.04) All versions No fix listed
icsharpcode sharpziplib >= 1.3.3, < 1.3.3 1.3.3
icsharpcode sharpziplib >= 1.0.0 No fix listed
ubuntu/mono(Ubuntu:26.10) All versions No fix listed
ubuntu/mono(Ubuntu:14.04) All versions No fix listed
ubuntu/mono(Ubuntu:14.04) = 2.10.8.1-5ubuntu2 No fix listed
ubuntu/mono(Ubuntu:14.04) = 3.2.3+dfsg-5 No fix listed
ubuntu/mono(Ubuntu:14.04) = 3.2.3+dfsg-7ubuntu1 No fix listed
ubuntu/mono(Ubuntu:14.04) = 3.2.8+dfsg-4ubuntu1 No fix listed
ubuntu/mono(Ubuntu:14.04) = 3.2.8+dfsg-4ubuntu1.1 No fix listed
ubuntu/mono(Ubuntu:16.04) All versions No fix listed
ubuntu/mono(Ubuntu:16.04) = 3.2.8+dfsg-4ubuntu4 No fix listed
ubuntu/mono(Ubuntu:16.04) = 4.2.1.102+dfsg2-5ubuntu1 No fix listed
ubuntu/mono(Ubuntu:16.04) = 4.2.1.102+dfsg2-7ubuntu4 No fix listed
ubuntu/mono(Ubuntu:18.04) All versions No fix listed
Show 18 more
ProductAffected versionsFixed in
ubuntu/mono(Ubuntu:18.04) = 4.6.2.7+dfsg-1ubuntu1 No fix listed
ubuntu/mono(Ubuntu:20.04) All versions No fix listed
ubuntu/mono(Ubuntu:20.04) = 5.18.0.240+dfsg-3 No fix listed
ubuntu/mono(Ubuntu:20.04) = 6.8.0.105+dfsg-1 No fix listed
ubuntu/mono(Ubuntu:20.04) = 6.8.0.105+dfsg-2 No fix listed
ubuntu/mono(Ubuntu:22.04) = 6.8.0.105+dfsg-3.2 No fix listed
ubuntu/mono(Ubuntu:24.04) = 6.8.0.105+dfsg-3.4 No fix listed
ubuntu/mono(Ubuntu:24.04) = 6.8.0.105+dfsg-3.5ubuntu1 No fix listed
ubuntu/mono(Ubuntu:24.04) = 6.8.0.105+dfsg-3.6ubuntu1 No fix listed
ubuntu/mono(Ubuntu:24.04) = 6.8.0.105+dfsg-3.6ubuntu2 No fix listed
ubuntu/mono(Ubuntu:25.10) All versions No fix listed
ubuntu/mono(Ubuntu:25.10) = 6.12.0.199+dfsg-3 No fix listed
ubuntu/mono(Ubuntu:25.10) = 6.12.0.199+dfsg-6 No fix listed
ubuntu/mono(Ubuntu:26.10) = 6.14.1+ds2-2 No fix listed
ubuntu/mono(Ubuntu:26.10) = 6.14.1+ds2-3 No fix listed
ubuntu/mono(Ubuntu:26.04) = 6.12.0.199+dfsg-6 No fix listed
ubuntu/mono(Ubuntu:26.04) = 6.14.1+ds2-1 No fix listed
ubuntu/mono(Ubuntu:26.04) = 6.14.1+ds2-2 No fix listed

References