Publish Advisories

GHSA-wpfp-cm49-9m9q
GHSA-wpfp-cm49-9m9q
This commit is contained in:
advisory-database[bot]
2025-01-21 20:28:34 +00:00
parent 53618a690b
commit d1a6d1f94e
2 changed files with 61 additions and 36 deletions
@@ -0,0 +1,61 @@
{
"schema_version": "1.4.0",
"id": "GHSA-wpfp-cm49-9m9q",
"modified": "2025-01-21T20:27:08Z",
"published": "2025-01-21T18:31:07Z",
"aliases": [
"CVE-2025-0377"
],
"summary": "HashiCorp go-slug Vulnerable to Zip Slip Attack",
"details": "## Summary\nHashiCorps 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 vulnerability, identified as CVE-2025-0377, is fixed in go-slug 0.16.3.\n\n## Background\nHashiCorps go-slug shared library offers functions for packing and unpacking Terraform Enterprise compatible slugs. Slugs are gzip compressed tar files containing Terraform configuration files.\n\n## Details\nWhen go-slug performs an extraction, the filename/extraction path is taken from the tar entry via the header.Name. It was discovered that the unpacking step improperly validated paths, potentially leading to path traversal, allowing an attacker to write an arbitrary file during extraction.\n\n## Remediation\nConsumers of the go-slug shared library should evaluate the risk associated with this issue in the context of their go-slug usage and upgrade go-slug to 0.16.3 or later.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"package": {
"ecosystem": "Go",
"name": "github.com/hashicorp/go-slug"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.16.3"
}
]
}
]
}
],
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-0377"
},
{
"type": "WEB",
"url": "https://discuss.hashicorp.com/t/hcsec-2025-01-hashicorp-go-slug-vulnerable-to-zip-slip-attack"
},
{
"type": "PACKAGE",
"url": "github.com/hashicorp/go-slug"
}
],
"database_specific": {
"cwe_ids": [
"CWE-59"
],
"severity": "HIGH",
"github_reviewed": true,
"github_reviewed_at": "2025-01-21T20:27:08Z",
"nvd_published_at": "2025-01-21T16:15:14Z"
}
}
@@ -1,36 +0,0 @@
{
"schema_version": "1.4.0",
"id": "GHSA-wpfp-cm49-9m9q",
"modified": "2025-01-21T18:31:07Z",
"published": "2025-01-21T18:31:07Z",
"aliases": [
"CVE-2025-0377"
],
"details": "HashiCorps go-slug library is vulnerable to a zip-slip style attack when a non-existing user-provided path is extracted from the tar entry.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [],
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-0377"
},
{
"type": "WEB",
"url": "https://discuss.hashicorp.com/t/hcsec-2025-01-hashicorp-go-slug-vulnerable-to-zip-slip-attack"
}
],
"database_specific": {
"cwe_ids": [
"CWE-59"
],
"severity": "HIGH",
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-01-21T16:15:14Z"
}
}