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

Medium 4.7 Published Updated

Attackers can exploit symlink attacks to write template output outside intended directories or overwrite existing files.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-14361?

CVE-2026-14361 is a medium-severity path traversal vulnerability in HashiCorp Tooling, published on 8 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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-59

Which versions are affected by CVE-2026-14361?

How do I fix CVE-2026-14361?

No fix has been published for CVE-2026-14361 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-14361 being exploited?

There is no known exploitation of CVE-2026-14361 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-xcm7-pmg9-8wjq.

Is CVE-2026-14361 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free