5.3

CVE-2021-32842: icsharpcode sharpziplib Path Traversal

CVSS: 5.3v3.1MediumModified
AliasesUBUNTU-CVE-2021-32842GHSA-mm6g-mmq6-53ff
Published 26-01-2022Last modified 22-04-2025

Vulnerability summary

CVE-2021-32842 is a medium (CVSS 5.3) Path Traversal vulnerability in icsharpcode sharpziplib. EPSS estimates a 0.90% chance of exploitation in the next 30 days, higher than 58.8% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
31/100
0100
Medium · default modelHow is this calculated?
CVSS score
5.3/10
010
Medium · v3.1 (NVD)
EPSS score
0.90%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Timeline

  1. 26-01-2022
    PublishedVulnerability first disclosed.
  2. 22-04-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

0.90%

Chance of exploitation in the next 30 days

Percentile

59%

Versus all other CVEs

30-day change

0.00 pp

From 0.90% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.90%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Ghsl 2021 125 Sharpziplib

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Icsharpcode1 product
NuGet1 product
  • SharpZipLib≥ 1.0.0, < 1.3.3
Sharpziplib_project1 product
Ubuntu1 product
  • monoAll versions (No fix recorded)

4 vendors · 4 products

References

7 links