CVE-2022-41920
vulnerability analysis and mitigation

Overview

CVE-2022-41920 is a high-severity ZipSlip vulnerability affecting the fileutil package in github.com/duke-git/lancet library versions <=v2.1.9, >=v2.0.0, and <=v1.3.3. The vulnerability was discovered and reported in November 2022 (GitHub Advisory).

Technical details

The vulnerability exists in the UnZip function of the fileutil package, where improper validation of file paths during archive extraction could allow path traversal. An attacker could craft a malicious zip file containing files with paths that traverse outside the intended extraction directory using relative path patterns like '../../../../' (GitHub Advisory).

Impact

If exploited, this vulnerability could allow an attacker to overwrite arbitrary files on the system by extracting maliciously crafted zip archives. This could lead to system compromise through overwriting critical files outside the intended extraction directory (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions v2.1.10 and above for v2.x users, and v1.3.4 and above for v1.x users. No workarounds are available - users must upgrade to the patched versions. The fix implements proper path validation through a new safeFilepathJoin function that prevents path traversal (GitHub Advisory).

Community reactions

The vulnerability was responsibly disclosed through GitHub's security advisory process. The maintainers responded by quickly implementing and releasing patches after the report (GitHub Issue).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management