4.7Medium

CVE-2026-5061Consul-template vulnerable to sandbox path bypass in file helper via a symlink attack

HashiCorp Tooling Published: (6 months ago)

Description

The consul-template library before version 0.42.0 is vulnerable to a sandbox path bypass in the file template helper that may allow reading an out-of-sandbox file. This vulnerability (CVE-2026-5061) is fixed in consul-template 0.42.0.

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.0

References and patches