Quick answers
- Is CVE-2026-14361 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-14361 being exploited in the wild.
- How severe is CVE-2026-14361?
- Medium severity, with a CVSS score of 4.7, published 8 July 2026.
- Which products and versions are affected?
- HashiCorp Consul-Template 0.1.0 to 0.42.0.
- Is there a fix for CVE-2026-14361?
- A patch was published on 2026-07-08. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-14361 attacked?
- It is attacked with local access, in a software library.
- Am I affected by CVE-2026-14361?
- Check whether you run HashiCorp Consul-Template at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
The writeToFile template helper in consul-template (versions prior to 0.42.1) fails to properly resolve and validate destination paths before writing rendered content. The function follows symbolic links, directory junctions, and other filesystem redirections without verifying if the final path resides within the intended directory (CWE-59). An attacker with local filesystem access can pre-position a symlink at the target path to redirect the output. This can result in the disclosure of sensitive data (like certificates or keys) to unauthorized locations or the overwriting of arbitrary files, especially if the process is running with elevated privileges. The issue is resolved in version 0.42.1.
Affected products
- HashiCorp Consul-template 0.1.0 to 0.42.0
Timeline
- 2026-07-08: disclosed
- 2026-07-08: advisory
- 2026-07-08: patched