GitHub Advisoryadvisory · Go
GHSA-pp3f-xrw5-q5j4 Lancet vulnerable to path traversal when unzipping files
HIGH
Official page ↗
- Aliases
- CVE-2022-41920
- Ecosystem
- Go
- Packages
- github.com/duke-git/lancet/v2, github.com/duke-git/lancet
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-22
- Reviewed
- 2022-11-21
Affected packages
• Go github.com/duke-git/lancet/v2: >= 2.0.0, < 2.1.10 → fixed in 2.1.10
• Go github.com/duke-git/lancet: < 1.3.4 → fixed in 1.3.4
Description
Impact
_What kind of vulnerability is it? Who is impacted?_
ZipSlip issue when use fileutil package to unzip files.
Patches
_Has the problem been patched? What versions should users upgrade to?_
It will fixed in v2.1.10, Please upgrade version to v2.1.10 or above.
Users who use v1.x.x should upgrade v1.3.4 or above.
Workarounds
_Is there a way for users to fix or remediate the vulnerability without upgrading?_
No, users have to upgrade version.
Related
Alias · CVE (1)
- CVE-2022-41920 Lancet is a general utility library for the go programming language. vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://github.com/duke-git/lancet/security/advisories/GHSA-pp3f-xrw5-q5j4 web
- https://nvd.nist.gov/vuln/detail/CVE-2022-41920 advisory
- https://github.com/duke-git/lancet/issues/62 web
- https://github.com/duke-git/lancet/commit/f133b32faa05eb93e66175d01827afa4b7094572 web
- https://github.com/duke-git/lancet/commit/f869a0a67098e92d24ddd913e188b32404fa72c9 web
- https://github.com/duke-git/lancet package
- https://pkg.go.dev/vuln/GO-2022-1114 web