Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/duke-git/lancet/fileutil
  4. ›
  5. CVE-2022-41920

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

November 21, 2022 (updated February 9, 2023)

Lancet is a general utility library for the go programming language. Affected versions are subject to a ZipSlip issue when using the fileutil package to unzip files. This issue has been addressed and a fix will be included in versions 2.1.10 and 1.3.4. Users are advised to upgrade. There are no known workarounds for this issue.

References

  • github.com/advisories/GHSA-pp3f-xrw5-q5j4
  • github.com/duke-git/lancet/commit/f133b32faa05eb93e66175d01827afa4b7094572
  • github.com/duke-git/lancet/commit/f869a0a67098e92d24ddd913e188b32404fa72c9
  • github.com/duke-git/lancet/issues/62
  • github.com/duke-git/lancet/security/advisories/GHSA-pp3f-xrw5-q5j4
  • nvd.nist.gov/vuln/detail/CVE-2022-41920
  • pkg.go.dev/vuln/GO-2022-1114

Code Behaviors & Features

Detect and mitigate CVE-2022-41920 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.4

Fixed versions

  • v1.3.4

Solution

Upgrade to version 1.3.4 or above.

Impact 8.8 HIGH

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

Learn more about CVSS

Weakness

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

Source file

go/github.com/duke-git/lancet/fileutil/CVE-2022-41920.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:14 +0000.