CVE-2021-32840
JSON

7.3high

Path Traversal in SharpZipLib

Severity
7.3high CVSS:3.1 by GitHub_M
Exploit likelihood
1.97% (higher than 81% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-m22m-h4rf-pwq3

Description

SharpZipLib (or #ziplib) is a Zip, GZip, Tar and BZip2 library. Prior to version 1.3.3, a TAR file entry `../evil.txt` may be extracted in the parent directory of `destFolder`. This leads to arbitrary file write that may lead to code execution. The vulnerability was patched in version 1.3.3.

Affected

Product or packageVersionsReported by
icsharpcode sharpziplibfrom 1.3.3 before 1.3.3, from 0.86.0 before 0.86.0*CVE List
SharpZipLib (NuGet)before 1.3.3GitHub Advisory Database
sharpziplib_project sharpziplibbefore 1.3.3NVD

All scores

GitHub_M7.3high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
GitHub7.3high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

CWE-22

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

SharpZipLib (or #ziplib) is a Zip, GZip, Tar and BZip2 library. Prior to version 1.3.3, a TAR file entry `../evil.txt` may be extracted in the parent directory of `destFolder`. This leads to arbitrary file write that may lead to code execution. The vulnerability was patched in version 1.3.3.

NVD (es)

SharpZipLib (o #ziplib) es una biblioteca Zip, GZip, Tar y BZip2. En versiones anteriores a 1.3.3, una entrada de archivo TAR "../evil.txt" puede ser extraída en el directorio padre de "destFolder". Esto conlleva a una escritura arbitraria de archivos que puede conllevar a una ejecución de código. La vulnerabilidad fue parcheada en la versión 1.3.3

References

Sources

SourceRecordLicence
CVE ListCVE-2021-32840 changed 2025-04-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-m22m-h4rf-pwq3 changed 2024-02-19CC-BY-4.0
NVDCVE-2021-32840 changed 2026-06-17Public domain