GHSA-pp3f-xrw5-q5j4
Lancet vulnerable to path traversal when unzipping files
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| Go | github.com/duke-git/lancet/v2 | >= 2.0.0, < 2.1.10 | 2.1.10 |
| Go | github.com/duke-git/lancet | < 1.3.4 | 1.3.4 |
Details
As written in the advisory (Markdown source, shown as plain text).
### 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.
References
External links from the advisory. They lead to third-party sites.
- https://github.com/duke-git/lancet/security/advisories/GHSA-pp3f-xrw5-q5j4
- https://nvd.nist.gov/vuln/detail/CVE-2022-41920
- https://github.com/duke-git/lancet/issues/62
- https://github.com/duke-git/lancet/commit/f133b32faa05eb93e66175d01827afa4b7094572
- https://github.com/duke-git/lancet/commit/f869a0a67098e92d24ddd913e188b32404fa72c9
- https://github.com/duke-git/lancet
- https://pkg.go.dev/vuln/GO-2022-1114