CVE-2022-41920: Lancet vulnerable to path traversal when unzipping files
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.2932%
CWE
Published
11/21/2022
Updated
8/29/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/duke-git/lancet/v2 | go | >= 2.0.0, < 2.1.10 | 2.1.10 |
| github.com/duke-git/lancet | go | < 1.3.4 | 1.3.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
- The vulnerability explicitly mentions 'ZipSlip when unzipping files' in fileutil package
- Commit diff shows the vulnerability was in UnZip function's path construction logic
- Pre-patch code used direct filepath.Join() without validation
- The patch introduces safeFilepathJoin to prevent path traversal
- Go vulnerability database (GO-2022-1114) specifically lists UnZip as affected symbol
- CWE-22 classification matches the ZipSlip pattern of improper path limitation