Path Equivalence Affecting github.com/hashicorp/go-slug/internal/ignorefiles package, versions >=0.4.0 <0.18.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMHASHICORPGOSLUGINTERNALIGNOREFILES-19784398
  • published14 Sept 2026
  • disclosed19 Aug 2026
  • creditTomas Illuminati

Introduced: 19 Aug 2026

CVE-2026-14978  (opens in a new tab)
CWE-41  (opens in a new tab)

How to fix?

Upgrade github.com/hashicorp/go-slug/internal/ignorefiles to version 0.18.3 or higher.

Overview

Affected versions of this package are vulnerable to Path Equivalence in its .terraformignore pattern matching, which compares filenames against ignore patterns without normalizing both to a common Unicode form. An attacker with write access to the working directory can cause sensitive files to be included in a Terraform slug upload despite an exclusion rule that should match them, by naming a file in a Unicode form that differs from the form used in the pattern. This requires local access to the working directory and a filename and pattern that differ only by Unicode normalization, which arises primarily on macOS filesystems.

CVSS Base Scores

version 4.0
version 3.1