CVE-2021-32841

Path Traversal in SharpZipLib

MEDIUM
5.3
CVSS Score
Published: January 26, 2022 at 09:10 PM UTC
Updated: June 17, 2026 at 03:53 AM UTC
2 products affected across 2 vendorsSharpZipLibProject Sharpziplib

Using sharpziplib by icsharpcode?

Get instant alerts when new vulnerabilities affect sharpziplib - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 1%
SSVC
PoC

Description

SharpZipLib (or #ziplib) is a Zip, GZip, Tar and BZip2 library. Starting version 1.3.0 and prior to version 1.3.3, a check was added if the destination file is under destination directory. However, it is not enforced that `destDir` ends with slash. If the `destDir` is not slash terminated like `/home/user/dir` it is possible to create a file with a name thats begins with the destination 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 contains a patch for this vulnerability.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

1.3.0 ≤ v < 1.3.3
Affected range stops below 1.3.3, so it looks safe — our inference, not a vendor statement
v < 1.3.31.3.0 ≤ v < 1.3.0*1.3.0
Affected range stops below 1.3.0*, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.3.3, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-22

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card