Vulnerability · Published Mar 7, 2023 · Assigned by GitHub_M

CVE-2023-27475Goutil vulnerable to path traversal when unzipping files

High 8.8

In plain English

A high-severity path traversal in goutil from gookit. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.8%top 41.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Goutil is a collection of miscellaneous functionality for the go language. In versions prior to 0.6.0 when users use fsutil.Unzip to unzip zip files from a malicious attacker, they may be vulnerable to path traversal. This vulnerability is known as a ZipSlip. This issue has been fixed in version 0.6.0, users are advised to upgrade. There are no known workarounds for this issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/gookit/goutil0.6.0GHSA-fx2v-qfhr-4chv
Gogithub.com/gookit/goutil0.6.7GO-2023-1611

Affected products (as reported)

VendorProductVersions
gookit goutil < 0.6.0

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References