GHSA-fx2v-qfhr-4chv
Goutil vulnerable to path traversal when unzipping files
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| Go | github.com/gookit/goutil | < 0.6.0 | 0.6.0 |
Details
As written in the advisory (Markdown source, shown as plain text).
### Impact
ZipSlip issue when use fsutil package to unzip files.
When users use fsutil.Unzip to unzip zip files from a malicious attacker, they may be vulnerable to path traversal.
### Patches
It has been fixed in v0.6.0, Please upgrade version to v0.6.0 or above.
### Workarounds
No, users have to upgrade version.
References
External links from the advisory. They lead to third-party sites.
- https://github.com/gookit/goutil/security/advisories/GHSA-fx2v-qfhr-4chv
- https://nvd.nist.gov/vuln/detail/CVE-2023-27475
- https://github.com/gookit/goutil/commit/d7b94fede71f018f129f7d21feb58c895d28dadc
- https://github.com/gookit/goutil
- https://pkg.go.dev/vuln/GO-2023-1611
- https://security.netapp.com/advisory/ntap-20230427-0003