Vulnerability · Published Jul 8, 2026 · Assigned by HashiCorp
CVE-2026-14361Consul-template is vulnerable to path redirection in writeToFile through symlink attack
Medium 4.7
In plain English
A medium-severity security flaw in Tooling from HashiCorp. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 3% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.
Official 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 (as reported)
Weakness: CWE-59 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N