Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/vulndb: potential Go vuln in github.com/hashicorp/go-slug: GHSA-wpfp-cm49-9m9q #3413

Closed
GoVulnBot opened this issue Jan 21, 2025 · 1 comment
Labels

Comments

@GoVulnBot
Copy link

Advisory GHSA-wpfp-cm49-9m9q references a vulnerability in the following Go modules:

Module
github.com/hashicorp/go-slug

Description:

Summary

HashiCorp’s 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.

Background

HashiCorp’s go-slug shared library offers functions for packing and unpacking Terraform Enterprise compatible slugs. Slugs are gzip compressed tar files containing Terraform configuration files.

Details

When go-slug performs an extraction, the filename/extraction path is taken from the tar entry via the header.Name. It was discovered that the unp...

References:

Cross references:

  • github.com/hashicorp/go-slug appears in 1 other report(s):

See doc/quickstart.md for instructions on how to triage this report.

id: GO-ID-PENDING
modules:
    - module: github.com/hashicorp/go-slug
      versions:
        - fixed: 0.16.3
      vulnerable_at: 0.16.2
summary: HashiCorp go-slug Vulnerable to Zip Slip Attack in github.com/hashicorp/go-slug
cves:
    - CVE-2025-0377
ghsas:
    - GHSA-wpfp-cm49-9m9q
references:
    - advisory: https://github.com/advisories/GHSA-wpfp-cm49-9m9q
    - advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-0377
    - web: https://discuss.hashicorp.com/t/hcsec-2025-01-hashicorp-go-slug-vulnerable-to-zip-slip-attack
source:
    id: GHSA-wpfp-cm49-9m9q
    created: 2025-01-21T21:01:29.652080158Z
review_status: UNREVIEWED

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/643498 mentions this issue: data/reports: add 7 unreviewed reports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants