VDB

CVE-2021-32840

CVE-2021-32840 PUBLISHED CVSS 7.3 HIGH

Path Traversal in SharpZipLib

Reported by github_m · Published January 26, 2022

SharpZipLib is fixed in 1.3.3 (NuGet)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
SharpZipLibNuGet1.3.3
sharpziplibicsharpcode1.3.3
sharpziplibsharpziplib_project1.3.3

Risk scores

CVSS 3.1
7.3
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L

Affected products

VendorProductVersions
icsharpcodesharpziplib1.3.3, 0.86.0
icsharpcodesharpziplib1.3.3, 0.86.0
NuGetSharpZipLib0

Timeline

  • Jan 26, 2022 CVE Published
  • Jan 27, 2022 EPSS Score (30 in total, the first dated here)
  • Nov 21, 2024 CVE Updated
  • Mar 17, 2026 Security Advisory
  • Aug 1, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-32840
vulnetix vdb fixes CVE-2021-32840

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-32840/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›