CVE-2026-14361
JSON

4.7medium

Consul-template is vulnerable to path redirection in writeToFile through symlink attack

Severity
4.7medium CVSS:3.1 by HashiCorp
Exploit likelihood
0.14% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
HashiCorp

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.

Affected

Product or packageVersionsReported by
HashiCorp Toolingfrom 0.1.0 before 0.42.1CVE List

Classification

CWE-59

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-14361 changed 2026-07-08CVE Terms of Use
NVDCVE-2026-14361 changed 2026-10-25Public domain