CVE-2026-5061: Consul-template vulnerable to sandbox path bypass in file helper via a symlink attack

Published May 12, 2026
·
Updated

The consul-template library before version 0.42.0 is vulnerable to a sandbox path bypass in the file template helper that may allow reading an out-of-sandbox file. This vulnerability (CVE-2026-5061) is fixed in consul-template 0.42.0.

Affected Software

1 affected component
HashiCorp consul-template<0.42.0

Event History

May 12, 2026
CVE Published
via MITRE·01:58 PM
Data Sourced
via MITRE·01:58 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03: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-5061?

The severity of CVE-2026-5061 has not been explicitly stated, but it involves a significant risk of information disclosure due to the exposed file access.

2

How do I fix CVE-2026-5061?

To fix CVE-2026-5061, upgrade your HashiCorp consul-template library to version 0.42.0 or later.

3

What versions of consul-template are affected by CVE-2026-5061?

Versions of HashiCorp consul-template prior to 0.42.0 are affected by CVE-2026-5061.

4

What kind of attack does CVE-2026-5061 describe?

CVE-2026-5061 describes a sandbox path bypass vulnerability that can be exploited via a symlink attack.

5

Can CVE-2026-5061 lead to data exposure?

Yes, CVE-2026-5061 may allow unauthorized reading of files outside the intended sandbox environment.

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