GitHub Advisoryadvisory · Go

GHSA-2g5j-5x95-r6hr Unsafe tar unpacking in HashiCorp go-slug

HIGH Published 2023-02-06 Modified 2023-02-06 Official page ↗
Aliases
CVE-2020-29529
Ecosystem
Go
Packages
github.com/hashicorp/go-slug
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-22, CWE-59
Reviewed
2023-02-06

Affected packages

• Go github.com/hashicorp/go-slug: < 0.5.0 → fixed in 0.5.0

Description

HashiCorp go-slug before 0.5.0 does not address attempts at directory traversal involving ../ and symlinks.

Related

Alias · CVE (1)

  • CVE-2020-29529 HashiCorp go-slug up to 0.4.3 did not fully protect against directory traversal while unpacking tar archives, and protections could be… vulnerability

Weakness · CWE (2)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
  • CWE-59 Improper Link Resolution Before File Access weakness

References