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

fix(deps): update module github.com/hashicorp/go-slug to v0.16.3 [security] #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate-coveooss[bot]
Copy link

@renovate-coveooss renovate-coveooss bot commented Jan 21, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/hashicorp/go-slug v0.16.0 -> v0.16.3 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

GitHub Vulnerability Alerts

CVE-2025-0377

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 unpacking step improperly validated paths, potentially leading to path traversal, allowing an attacker to write an arbitrary file during extraction.

Remediation

Consumers 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.


Release Notes

hashicorp/go-slug (github.com/hashicorp/go-slug)

v0.16.3

Compare Source

What's Changed

Note: This release may have issues when unpacking a tarball, we recommend using 0.16.4 or later.

Full Changelog: hashicorp/go-slug@v0.16.2...v0.16.3

v0.16.2

Compare Source

What's Changed

New Contributors

Full Changelog: hashicorp/go-slug@v0.16.1...v0.16.2

v0.16.1

Compare Source

  • #​68: Fix panic in sourcebundle package when RegistryMeta and Packages aren't the same size.

Full Changelog: hashicorp/go-slug@v0.16.0...v0.16.1


Configuration

📅 Schedule: Branch creation - "" in timezone America/Toronto, Automerge - "after 9:00am and before 12:00pm on tuesday, wednesday, thursday" in timezone America/Toronto.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

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

Successfully merging this pull request may close these issues.

0 participants