{"id":"CVE-2026-14361","aliases":["EUVD-2026-42346","GHSA-xcm7-pmg9-8wjq"],"status":"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.","severity":{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00133,"percentile":0.029,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-59"],"published":"2026-07-08T20:11:32Z","modified":"2026-10-28T02:31:09Z","exploits":[{"source":"pocgithub","id":"0xmrma/CVE-2026-14361","title":"0xmrma/CVE-2026-14361","date":"2026-08-01","url":"https://github.com/0xmrma/CVE-2026-14361"}],"products":[{"vendor":"hashicorp","product":"tooling"}],"references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2026-20-consul-template-vulnerable-to-path-redirections-in-writetofile/77559","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-14361","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-xcm7-pmg9-8wjq"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/14xxx/CVE-2026-14361.json","tags":["advisory"]},{"url":"https://github.com/hashicorp/consul-template","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-14361","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.","status":"published","published":"2026-07-08T20:11:32.799Z","modified":"2026-07-08T20:37:56.57Z","cvss":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T13:38:32.13011Z"}],"euvd":[{"id":"EUVD-2026-42346","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.","status":"published","published":"2026-07-08T20:11:32Z","modified":"2026-07-08T20:37:56Z","cvss":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T18:20:10.095263Z"}],"ghsa":[{"id":"GHSA-xcm7-pmg9-8wjq","title":"The consul-template library before version 0.42.1 is vulnerable to a path redirection issue in...","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.","status":"published","published":"2026-07-08T21:30:27Z","modified":"2026-07-08T21:30:27Z","cvss":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T15:09:20.268554Z"}],"nvd":[{"id":"CVE-2026-14361","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.","status":"published","published":"2026-07-08T20:16:47.85Z","modified":"2026-10-25T17:10:00.197Z","cvss":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T14:12:28.4135Z"}],"osv":[{"id":"CVE-2026-14361","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.","status":"published","published":"2026-07-08T20:11:32.799Z","modified":"2026-10-28T02:31:09.276808567Z","cvss":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-59"],"updated_at":"2026-11-02T15:44:57.354194Z"}]}}
