CVE-2026-5061: CWE-59: Improper Link Resolution Before File Access (Link Following) in HashiCorp Tooling
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.
AI Analysis
Technical Summary
The consul-template library versions prior to 0.42.0 contain a vulnerability classified as CWE-59 (Improper Link Resolution Before File Access). This flaw allows an attacker to bypass sandbox restrictions in the file template helper component, potentially reading files outside the sandbox boundary. The vulnerability has a CVSS 3.1 base score of 4.7, reflecting local attack vector, high attack complexity, low privileges required, no user interaction, and high confidentiality impact. The issue is resolved in version 0.42.0 of consul-template.
Potential Impact
Successful exploitation could allow an attacker with local access and low privileges to read sensitive files outside the sandbox environment, potentially exposing confidential information. There is no impact on integrity or availability. No known exploits have been reported in the wild.
Mitigation Recommendations
Upgrade to consul-template version 0.42.0 or later, where this vulnerability is fixed. Since the vendor advisory indicates the issue is resolved in this version, applying this official fix is the recommended remediation. No additional mitigation steps are specified.
CVE-2026-5061: CWE-59: Improper Link Resolution Before File Access (Link Following) in HashiCorp Tooling
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The consul-template library versions prior to 0.42.0 contain a vulnerability classified as CWE-59 (Improper Link Resolution Before File Access). This flaw allows an attacker to bypass sandbox restrictions in the file template helper component, potentially reading files outside the sandbox boundary. The vulnerability has a CVSS 3.1 base score of 4.7, reflecting local attack vector, high attack complexity, low privileges required, no user interaction, and high confidentiality impact. The issue is resolved in version 0.42.0 of consul-template.
Potential Impact
Successful exploitation could allow an attacker with local access and low privileges to read sensitive files outside the sandbox environment, potentially exposing confidential information. There is no impact on integrity or availability. No known exploits have been reported in the wild.
Mitigation Recommendations
Upgrade to consul-template version 0.42.0 or later, where this vulnerability is fixed. Since the vendor advisory indicates the issue is resolved in this version, applying this official fix is the recommended remediation. No additional mitigation steps are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- HashiCorp
- Date Reserved
- 2026-03-27T18:27:28.875Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a0341f2cbff5d8610f8ff86
Added to database: 5/12/2026, 3:06:26 PM
Last enriched: 5/12/2026, 3:22:39 PM
Last updated: 5/12/2026, 7:12:30 PM
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.