Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. SharpZipLib
  4. ›
  5. CVE-2021-32840

CVE-2021-32840: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

February 1, 2022

SharpZipLib (or #ziplib) is a Zip, GZip, Tar and BZip2 library. 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.

References

  • github.com/advisories/GHSA-m22m-h4rf-pwq3
  • github.com/icsharpcode/SharpZipLib/commit/a0e96de70b5264f4c919b09253b1522bc7a221cc
  • github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3
  • nvd.nist.gov/vuln/detail/CVE-2021-32840
  • securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/

Code Behaviors & Features

Detect and mitigate CVE-2021-32840 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.3.3

Fixed versions

  • 1.3.3

Solution

Upgrade to version 1.3.3 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

nuget/SharpZipLib/CVE-2021-32840.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:07 +0000.