Sceawere

Vulnerability Detail

CVE-2026-14978UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV

HashiCorp go-slug Unicode Normalization Bypass

Vulnerability Metadata

Severity
Medium
Score / CVSS
5.5
Creation Date
3h ago
Vendor
HashiCorp
Product
go-slug
Attack Type
CWE-176 Improper Handling of Unicode Encoding
Vector String
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Attack Complexity
LOW

Narrative and Response

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.

Executive Summary

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Executive Summary Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Technical Details

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Detailed Technical Analysis Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Mitigations

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Remediation & Mitigations Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

References

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Intelligence References Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Additional Metadata

{
  "score": "5.5",
  "pubDate": "2026-08-19T21:16:54.007Z",
  "pubdate": "2026-08-19T21:16:54.007Z",
  "executiveSummary": "A path matching vulnerability exists in HashiCorp go-slug versions 0.4.0 through 0.18.2, which allows a local attacker to bypass .terraformignore exclusions and force the inclusion of sensitive files within Terraform slug archives.\nThe flaw stems from improper handling of Unicode normalization during path evaluation and pattern matching against exclusion rules defined in ignore files.\nBy crafting file paths with specific Unicode character variations that fail to normalize correctly, an attacker can evade intended exclusion mechanisms.\nThis vulnerability compromises the confidentiality of local files, potentially exposing sensitive data, credentials, or proprietary configurations that were explicitly intended to be omitted from uploads.\nExploitation requires local access to the system where the slug generation is performed, allowing the manipulation of file paths and directory structures prior to archive creation.\nNo network exposure is inherently required for the underlying path mismatch to trigger, as the core issue lies in the internal string processing logic of the affected go-slug library during local archive packaging.",
  "technicalDetails": "The root cause of the vulnerability resides within the path matching and exclusion evaluation logic of the HashiCorp go-slug library, specifically in how string comparisons are executed against patterns defined in .terraformignore files.\nDuring the packaging of files into a slug archive, the library iterates over local directory contents and evaluates file paths against ignore rules to determine which artifacts should be omitted.\nDue to improper handling or complete omission of proper Unicode normalization (such as Form C or Form D normalization) during path string processing, file paths containing alternate Unicode representations fail to match equivalent exclusion patterns.\nAn attacker with local file system access can create files or directories utilizing alternative Unicode character sequences that logically represent targeted sensitive files but differ in their underlying byte representation from the exclusion patterns listed in .terraformignore.\nWhen the go-slug library processes these paths, the mismatch causes the exclusion filter to incorrectly evaluate the path as safe for inclusion.\nConsequently, the sensitive files are packaged into the resulting Terraform slug upload, bypassing the security boundary enforced by the ignore file.\nThe vulnerable component is the path matching and filtering subsystem of the HashiCorp go-slug library, affecting all versions from 0.4.0 up to and including 0.18.2.\nPrivilege requirements are minimal, requiring only local file creation capabilities within the targeted directory structure.\nPost-exploitation impact involves the unauthorized disclosure of sensitive information contained within the improperly included files, which are subsequently transmitted to remote systems via the Terraform slug upload mechanism."
}
CVE-2026-14978: HashiCorp go-slug Unicode Normalization Bypass (MEDIUM Severity, CVSS: 5.5) - Sceawere