What’s Vulnerable › Vulnerabilities

CVE-2026-14361: Consul-template is vulnerable to path redirection in writeToFile through symlink attack

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.

Affected products

How to fix

Upgrade to a fixed version: HashiCorp Tooling 0.42.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-14361 or the next vulnerability affects your stack