Home

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.

PUBLISHED Reserved 2026-07-01 | Published 2026-07-08 | Updated 2026-07-08 | Assigner HashiCorp




MEDIUM: 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Problem types

CWE-59: Improper Link Resolution Before File Access (Link Following)

Product status

Default status
unaffected

0.1.0 (semver) before 0.42.1
affected

Credits

This issue was reported to HashiCorp by Mohamed Abdelaal (0xmrma).

References

discuss.hashicorp.com/...h-redirections-in-writetofile/77559

cve.org (CVE-2026-14361)

nvd.nist.gov (CVE-2026-14361)

Download JSON