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.
CVE-2026-14361
Score 4.7 from GitHub Security Advisory published 2026-07-08. a secondary CVSS source baseline 4.7; sources differ by 0.0.
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 4.7
- EG Score
- 4.7(high)
- EPSS
- 1.3%
- KEV
- Not listed
Published
July 8, 2026
Last Modified
July 9, 2026
Advisory Details (1)
Auto-updated Jul 8, 2026HCSEC-2026-20 - Consul-template vulnerable to path redirections in writeToFile - Security - HashiCorp Discuss
https://discuss.hashicorp.com/t/hcsec-2026-20-consul-template-vulnerable-to-path-redirections-in-writetofile/77559Vendor Advisories for CVE-2026-14361(2)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 13× in last 7d / 13× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-12 18:09 UTCEG score recompute
- 2026-07-12 18:09 UTCGHSA enrichment
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-11 18:41 UTCEG score recompute
- 2026-07-11 18:41 UTCGHSA enrichment
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-10 19:13 UTCEG score recompute
- 2026-07-10 19:13 UTCGHSA enrichment
- 2026-07-09 19:45 UTCEG score recompute
- 2026-07-09 19:45 UTCGHSA enrichment
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-08 20:16 UTCEG score recompute
- 2026-07-08 20:14 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Frequently asked(5)
What is CVE-2026-14361?
When was CVE-2026-14361 disclosed?
Is CVE-2026-14361 actively exploited?
What is the CVSS score of CVE-2026-14361?
How do I remediate CVE-2026-14361?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-14361
Is Your Infrastructure Affected by CVE-2026-14361?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.