CVE-2026-14361: CWE-59: Improper Link Resolution Before File Access (Link Following) in HashiCorp Tooling
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.
AI Analysis
Technical Summary
The consul-template library versions prior to 0.42.1 contain a path redirection vulnerability in the writeToFile template helper. This improper link resolution (CWE-59) can lead to template output being written outside the intended directory or overwriting existing files. The vulnerability is addressed in consul-template version 0.42.1.
Potential Impact
Successful exploitation can result in unauthorized file writes outside the intended directory or overwriting existing files, potentially leading to data integrity issues or unauthorized modification of files. The CVSS score of 4.7 reflects a medium severity with high confidentiality impact but no impact on integrity or availability.
Mitigation Recommendations
Upgrade to consul-template version 0.42.1 or later, where this vulnerability is fixed. Patch status is confirmed by the vendor advisory indicating the fix in version 0.42.1.
CVE-2026-14361: CWE-59: Improper Link Resolution Before File Access (Link Following) in HashiCorp Tooling
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.
CVSS v3.1
Score 4.7medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The consul-template library versions prior to 0.42.1 contain a path redirection vulnerability in the writeToFile template helper. This improper link resolution (CWE-59) can lead to template output being written outside the intended directory or overwriting existing files. The vulnerability is addressed in consul-template version 0.42.1.
Potential Impact
Successful exploitation can result in unauthorized file writes outside the intended directory or overwriting existing files, potentially leading to data integrity issues or unauthorized modification of files. The CVSS score of 4.7 reflects a medium severity with high confidentiality impact but no impact on integrity or availability.
Mitigation Recommendations
Upgrade to consul-template version 0.42.1 or later, where this vulnerability is fixed. Patch status is confirmed by the vendor advisory indicating the fix in version 0.42.1.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- HashiCorp
- Date Reserved
- 2026-07-01T19:00:00.428Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4eafe7c9d9e3dbe3ade9fd
Added to database: 07/08/2026, 20:15:35 UTC
Last enriched: 07/08/2026, 20:29:29 UTC
Last updated: 07/08/2026, 20:44:00 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.