CVE-2026-14361: Consul-template is vulnerable to path redirection in writeToFile through symlink attack

Published Jul 8, 2026
·
Updated

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 Software

1 affected component
HashiCorp consul-template<0.42.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade consul-template to a version that resolves this vulnerability.

    Fixed in 0.42.1Patch CVE-2026-14361

Event History

Jul 8, 2026
CVE Published
via MITRE·08:11 PM
Data Sourced
via MITRE·08:11 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-14361?

The severity of CVE-2026-14361 is medium, with a CVSS score of 4.7.

2

How do I fix CVE-2026-14361?

To fix CVE-2026-14361, upgrade to consul-template version 0.42.1 or later.

3

What type of attack does CVE-2026-14361 involve?

CVE-2026-14361 involves a symlink attack that allows path redirection in the writeToFile function.

4

What software is affected by CVE-2026-14361?

CVE-2026-14361 affects the HashiCorp consul-template library prior to version 0.42.1.

5

What is the potential impact of CVE-2026-14361?

The potential impact of CVE-2026-14361 includes unauthorized file writes outside the intended directory or overwriting of existing files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203