{"id":"CVE-2026-14361","aliases":["CVE-2026-14361"],"related":[],"kind":"vulnerability","state":"published","title":"Consul-template is vulnerable to path redirection in writeToFile through symlink attack","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"La biblioteca consul-template anterior a la versión 0.42.1 es vulnerable a un problema de redirección de ruta en el asistente de plantilla writeToFile que puede permitir que la salida de la plantilla se escriba fuera del directorio previsto o sobrescriba un archivo existente. Esta vulnerabilidad (CVE-2026-14361) está corregida en consul-template 0.42.1.","source":"nvd"}],"published":"2026-07-08T20:11:32.799Z","modified":"2026-10-25T17:10:00.197Z","severity":{"scorer":"HashiCorp","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"HashiCorp","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-59"],"affected":[{"ranges":[{"type":"semver","introduced":"0.1.0","fixed":"0.42.1","status":"affected"}],"vendor":"HashiCorp","product":"Tooling","repo":"https://github.com/hashicorp/consul-template","platforms":["64 bit","32 bit","x86","ARM","MacOS","Windows","Linux"],"source":"cvelist"}],"references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2026-20-consul-template-vulnerable-to-path-redirections-in-writetofile/77559","tags":[],"sources":["cvelist","nvd"]}],"credits":["This issue was reported to HashiCorp by Mohamed Abdelaal (0xmrma)."],"assigner":"HashiCorp","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-08T20:37:49.249Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-14361","url":"https://www.cve.org/CVERecord?id=CVE-2026-14361","licence":"CVE Terms of Use","modified":"2026-07-08T20:37:56.570Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-14361","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-14361","licence":"Public domain","modified":"2026-10-25T17:10:00.197Z"}],"updatedAt":"2026-11-25T22:59:27.409Z","epss":{"score":0.00137,"percentile":0.03311,"date":"2026-12-01T12:00:22.000Z"}}