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

- Severity: Medium 4.7 (CVSS:3.1, scored by HashiCorp) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-07-08T20:11:32.799Z
- Modified: 2026-10-25T17:10:00.197Z
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: HashiCorp

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

(As written by CVE List.)

## Affected

- HashiCorp Tooling: from 0.1.0 before 0.42.1

## References

- <https://discuss.hashicorp.com/t/hcsec-2026-20-consul-template-vulnerable-to-path-redirections-in-writetofile/77559>

## Sources

- CVE List: [CVE-2026-14361](https://www.cve.org/CVERecord?id=CVE-2026-14361), CVE Terms of Use, modified 2026-07-08
- NVD: [CVE-2026-14361](https://nvd.nist.gov/vuln/detail/CVE-2026-14361), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-14361 · Whole record: https://cve.day/CVE-2026-14361.json · Rebuilt by cve.day 2026-11-25T22:59:27.409Z
