Consul-template is vulnerable to path redirection in writeToFile through symlink attack
Summary
| CVE | CVE-2026-14361 |
|---|---|
| State | PUBLISHED |
| Assigner | HashiCorp |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-07-08 20:16:47 UTC |
| Updated | 2026-07-08 21:16:46 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 4.7 MEDIUM from [email protected]
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Problem Types: CWE-59 | CWE-59 CWE-59: Improper Link Resolution Before File Access (Link Following)
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 4.7 | MEDIUM | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
| 3.1 | CNA | CVSS | 4.7 | MEDIUM | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
HighPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
NoneAvailability
NoneCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| discuss.hashicorp.com/t/hcsec-2026-20-consul-template-vulnerable-to-path-redirectio... | [email protected] | discuss.hashicorp.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: This issue was reported to HashiCorp by Mohamed Abdelaal (0xmrma). (en)
There are currently no legacy QID mappings associated with this CVE.