{"id":"CVE-2026-14361","published":"2026-07-08T20:11:32Z","modified":"2026-07-08T20:37:56Z","title":"Consul-template is vulnerable to path redirection in writeToFile through symlink attack","vendor":"HashiCorp","product":"Tooling","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00133,"percentile":0.01382,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2026-20-consul-template-vulnerable-to-path-redirections-in-writetofile/77559","tags":[]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":0.28},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.29}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-08-01","earliestUrl":"https://github.com/0xmrma/CVE-2026-14361","repos":[{"name":"0xmrma/CVE-2026-14361","url":"https://github.com/0xmrma/CVE-2026-14361","stars":0,"created":"2026-08-01"}]},"first":{"date":"2026-08-01","source":"PoC-in-GitHub","url":"https://github.com/0xmrma/CVE-2026-14361"},"provenance":"source"},"vendorSlug":"hashicorp","affectedVersions":[{"vendor":"HashiCorp","product":"Tooling","versions":[">= 0.1.0, < 0.42.1"]}],"capec":[{"id":"CAPEC-132","name":"Symlink Attack"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-08T20:37:49.249358Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-42346","exploited":false,"provenance":"source"}}