Description
HashiCorp go-slug 0.4.0 through 0.18.2 could allow a local attacker to bypass .terraformignore exclusions and cause sensitive files to be included in Terraform slug uploads due to improper handling of Unicode normalization during path matching.
Published: 2026-08-19
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In HashiCorp go-slug versions 0.4.0 through 0.18.2, an improper handling of Unicode normalization during path matching allows a local attacker to bypass the .terraformignore exclusion list. The flaw is rooted in CWE‑176, where differing representations of the same Unicode string can be treated as distinct, leading the code to treat normally excluded paths as valid. When used in Terraform slug uploads, this can cause sensitive files that should have been ignored to be bundled and potentially transmitted to external services, exposing confidential data.

Affected Systems

The vendor product affected is HashiCorp go-slug, specifically all releases from 0.4.0 up to and including 0.18.2. These versions are shipped as part of various Terraform tooling. The vendor recommends moving to version 0.18.3 or later to remediate the issue.

Risk and Exploitability

The CVSS score of 5.5 places this vulnerability in the moderate range. Because the exploit requires local access to the environment where the slug is built, the attack vector is local. No EPSS data is available, and the vulnerability is not listed in the CISA KEV catalog, suggesting it is not widely exploited. The primary consequence is the exposure of files that should have been excluded, which can lead to accidental disclosure of sensitive configuration or secret material.

Generated by OpenCVE AI on August 20, 2026 at 08:22 UTC.

Remediation

Vendor Solution

Customers should evaluate the risk associated with this issue and consider upgrading to github.com/hashicorp/go-slug v0.18.3.


OpenCVE Recommended Actions

  • Upgrade to hashicorp/go-slug v0.18.3 or newer
  • If upgrading is not immediately possible, disable automatic slug uploads or manually remove exposed files before upload
  • Audit .terraformignore patterns to ensure no Unicode characters are used that could be normalized differently

Generated by OpenCVE AI on August 20, 2026 at 08:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 04 Sep 2026 17:00:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:hashicorp:go-slug:*:*:*:*:*:*:*:*

Thu, 20 Aug 2026 00:30:00 +0000

Type Values Removed Values Added
First Time appeared Hashicorp go-slug
Vendors & Products Hashicorp go-slug

Wed, 19 Aug 2026 21:15:00 +0000

Type Values Removed Values Added
Description HashiCorp go-slug 0.4.0 through 0.18.2 could allow a local attacker to bypass .terraformignore exclusions and cause sensitive files to be included in Terraform slug uploads due to improper handling of Unicode normalization during path matching.
Title Unicode normalization mismatch in go-slug ignore pattern matching may bypass intended file exclusions
First Time appeared Hashicorp
Hashicorp go Slug
Weaknesses CWE-176
CPEs cpe:2.3:a:hashicorp:go_slug:0.18.2:*:*:*:*:*:*:*
cpe:2.3:a:hashicorp:go_slug:0.4.0:*:*:*:*:*:*:*
Vendors & Products Hashicorp
Hashicorp go Slug
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}


Subscriptions

Hashicorp Go-slug Go Slug
cve-icon MITRE

Status: PUBLISHED

Assigner: ibm

Published:

Updated: 2026-08-20T15:20:13.504Z

Reserved: 2026-07-07T16:52:26.760Z

Link: CVE-2026-14978

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-08-19T21:16:54.007

Modified: 2026-09-04T16:54:37.613

Link: CVE-2026-14978

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T08:30:04Z

Weaknesses
  • CWE-176

    Improper Handling of Unicode Encoding