{"id":"CVE-2026-14361","state":"PUBLISHED","title":"Consul-template is vulnerable to path redirection in writeToFile through symlink attack","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.","publishedAt":"2026-07-08T20:11:32.799Z","updatedAt":"2026-07-08T20:37:56.570Z","severity":{"score":4.7,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"HashiCorp"},"assigner":"HashiCorp","products":["HashiCorp Tooling"],"affected":[{"vendor":"HashiCorp","product":"Tooling","defaultStatus":"unaffected","versions":[{"version":"0.1.0","status":"affected","lessThan":"0.42.1","versionType":"semver"}],"platforms":["64 bit","32 bit","x86","ARM","MacOS","Windows","Linux"],"repo":"https://github.com/hashicorp/consul-template"}],"references":["https://discuss.hashicorp.com/t/hcsec-2026-20-consul-template-vulnerable-to-path-redirections-in-writetofile/77559"],"weaknesses":["CWE-59"],"ingestedAt":"2026-10-29T20:11:00.674Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/14xxx/CVE-2026-14361.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-14361","state":"PUBLISHED","datePublished":"2026-07-08T20:11:32.799Z","dateUpdated":"2026-07-08T20:37:56.570Z","assignerShortName":"HashiCorp","assignerOrgId":"67fedba0-ff2e-4543-ba5b-aa93e87718cc","dateReserved":"2026-07-01T19:00:00.428Z"},"containers":{"cna":{"title":"Consul-template is vulnerable to path redirection in writeToFile through symlink attack","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"HashiCorp","product":"Tooling","defaultStatus":"unaffected","versions":[{"version":"0.1.0","status":"affected","lessThan":"0.42.1","versionType":"semver"}],"platforms":["64 bit","32 bit","x86","ARM","MacOS","Windows","Linux"],"repo":"https://github.com/hashicorp/consul-template"}],"references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2026-20-consul-template-vulnerable-to-path-redirections-in-writetofile/77559"}],"metrics":[{"cvssV3_1":{"baseScore":4.7,"baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-59","description":"CWE-59: Improper Link Resolution Before File Access (Link Following)","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"HashiCorp","orgId":"67fedba0-ff2e-4543-ba5b-aa93e87718cc","dateUpdated":"2026-07-08T20:11:32.799Z"},"credits":[{"lang":"en","value":"This issue was reported to HashiCorp by Mohamed Abdelaal (0xmrma)."}],"impacts":[{"capecId":"CAPEC-132","descriptions":[{"lang":"en","value":"CAPEC-132: Symlink Attack"}]}],"source":{"advisory":"HCSEC-2026-20","discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-08T20:37:49.249358Z","id":"CVE-2026-14361","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-08T20:37:56.570Z"}}]}}}