Consul-template is vulnerable to path redirection in writeToFile through symlink attack
HashiCorp Tooling
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| HashiCorp Tooling 64 bit, 32 bit, x86, ARM, MacOS, Windows, Linux |
| No fix yet |
Original description
The consul-template library before version 0.42.1 is vulnerable to a path redirection issue in the writeToFile template helper that may allow template output to be written outside the intended directory or to overwrite an existing file. This vulnerability (CVE-2026-14361) is fixed in consul-template 0.42.1.
From the CVE record · HashiCorp