CVE-2025-0377
Terraform Community vulnerability analysis and mitigation

Overview

HashiCorp's go-slug library was found to be vulnerable to a zip-slip style attack, identified as CVE-2025-0377. The vulnerability affects go-slug versions up to 0.16.2 and was disclosed on January 21, 2025. The go-slug library is used for packing and unpacking Terraform Enterprise compatible slugs, which are gzip compressed tar files containing Terraform configuration files (HashiCorp Advisory).

Technical details

The vulnerability occurs during the extraction process when the filename/extraction path is taken from the tar entry via the header.Name parameter. The unpacking step was found to improperly validate paths, which could lead to path traversal issues. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (Red Hat CVE).

Impact

The vulnerability allows an attacker to write arbitrary files during the extraction process, potentially compromising the integrity of the system where these files are extracted. This issue has an impact over the integrity of the system as it can write and over-write arbitrary files on the system where these files are extracted (Red Hat CVE).

Mitigation and workarounds

Users should upgrade to go-slug version 0.16.3 or later, which contains the fix for this vulnerability. No other mitigation is available for this issue other than updating the affected package to the version containing the fix (HashiCorp Advisory, Red Hat CVE).

Additional resources


SourceThis report was generated using AI

Related Terraform Community vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61729HIGH7.5
  • cAdvisorcAdvisor
  • consul-k8s-fips-1.5
NoYesDec 02, 2025
CVE-2025-61725HIGH7.5
  • cAdvisorcAdvisor
  • tekton-pipelines-fips-0.65
NoYesOct 29, 2025
CVE-2025-61727MEDIUM6.5
  • cAdvisorcAdvisor
  • gitaly-fips-18.6
NoYesDec 03, 2025
CVE-2025-58181MEDIUM5.3
  • cAdvisorcAdvisor
  • kuma-2.11
NoYesNov 19, 2025
CVE-2025-47914MEDIUM5.3
  • cAdvisorcAdvisor
  • atlantis-fips
NoYesNov 19, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management