FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

terraform -- exclusion bypass in .terraformignore handling

Affected packages
terraform < 1.15.9

Details

VuXML ID 4496ae0c-9d7d-11f1-a655-3497f65b111b
Discovery 2026-08-20
Entry 2026-08-21

HashiCorp reports:

Terraform bundles the go-slug library, which builds the archive uploaded to HCP Terraform or Terraform Enterprise when a run is started. In go-slug before v0.18.3, matching of .terraformignore rules does not consistently treat canonically equivalent Unicode filenames as the same path. On filesystems that normalize filenames, a file whose displayed name appears to match an exclusion rule can still end up in the generated upload bundle, so local files an operator intended to keep out of remote runs may be transmitted.

Exploitation requires local control over the working directory contents, use of .terraformignore, and filenames and ignore patterns that differ only by Unicode normalization form. Setups that do not use .terraformignore, use ASCII-only filenames and patterns, or run on filesystems that do not perform this normalization are not affected.

References

CVE Name CVE-2026-14978
URL https://discuss.hashicorp.com/t/hcsec-2026-31-go-slug-vulnerable-to-exclusion-bypass-in-terraformignore-handling/77668
URL https://github.com/hashicorp/terraform/releases/tag/v1.15.9