CVE-2026-14361

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

State
Published
Severity
4.7 Medium
Published
Jul 8, 2026
Updated
Jul 8, 2026
Reserved
Jul 1, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.14.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:NHashiCorp

Weaknesses

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

Affected Products

ProductVersions
ToolingHashiCorp
  • 0.1.0 to before 0.42.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.