Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/unknwon/cae/zip
  4. ›
  5. CVE-2020-7664

CVE-2020-7664: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

May 18, 2021 (updated January 4, 2022)

In all versions of the package github.com/unknwon/cae/zip, the ExtractTo function doesn’t securely escape file paths in zip archives which include leading or non-leading “..”. This allows an attacker to add or replace files system-wide.

References

  • github.com/advisories/GHSA-vpx7-vm66-qx8r
  • github.com/unknwon/cae/commit/07971c00a1bfd9dc171c3ad0bfab5b67c2287e11
  • nvd.nist.gov/vuln/detail/CVE-2020-7664

Code Behaviors & Features

Detect and mitigate CVE-2020-7664 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.0.1

Fixed versions

  • 1.0.1

Solution

Upgrade to version 1.0.1 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/unknwon/cae/zip/CVE-2020-7664.yml

Spotted a mistake? Edit the file on GitLab.

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

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