Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/gookit/goutil
  4. ›
  5. CVE-2023-27475

CVE-2023-27475: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

March 7, 2023 (updated April 27, 2023)

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.

References

  • github.com/advisories/GHSA-fx2v-qfhr-4chv
  • github.com/gookit/goutil/commit/d7b94fede71f018f129f7d21feb58c895d28dadc
  • github.com/gookit/goutil/security/advisories/GHSA-fx2v-qfhr-4chv
  • nvd.nist.gov/vuln/detail/CVE-2023-27475

Code Behaviors & Features

Detect and mitigate CVE-2023-27475 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.6.0

Fixed versions

  • v0.6.0

Solution

Upgrade to version 0.6.0 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/gookit/goutil/CVE-2023-27475.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:08 +0000.