4.7Medium

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

HashiCorp Tooling Published: (4 months ago)

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.

Weakness (CWE): CWE-59

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
HashiCorp Tooling 0.1.0 – < 0.42.1

References and patches