PT-2025-3860 · Hashicorp+1 · Go-Slug+1

CVE-2025-0377

·

Publicado

2025-01-21

·

Atualizado

2025-12-30

CVSS v3.1

9.1

Crítica

VetorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions HashiCorp go-slug versions prior to 0.16.3
Description The go-slug library is vulnerable to a zip-slip style attack when a non-existing user-provided path is extracted from the tar entry. This occurs because the unpacking step improperly validates paths, potentially leading to path traversal, allowing an attacker to write an arbitrary file during extraction. The library offers functions for packing and unpacking Terraform Enterprise compatible slugs, which are gzip compressed tar files containing Terraform configuration files.
Recommendations For versions prior to 0.16.3, upgrade go-slug to 0.16.3 or later to resolve the issue. As a temporary workaround, consider restricting the use of user-provided paths in the tar entry to minimize the risk of exploitation. Consumers of the go-slug shared library should evaluate the risk associated with this issue in the context of their go-slug usage.

Exploit

Correção

Link Following

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

CVE-2025-0377
GHSA-WPFP-CM49-9M9Q
GO-2025-3413
OPENSUSE-SU-2025:14684-1
OPENSUSE-SU-2025:14710-1
OPENSUSE-SU-2025:20097-1
OPENSUSE-SU-2025_0297-1
SUSE-SU-2025:0297-1

Produtos afetados

Suse
Go-Slug