Skip to main content

consul-template EUVDEUVD-2026-29483

| CVE-2026-5061 MEDIUM
Improper Link Resolution Before File Access (CWE-59)
2026-05-12 HashiCorp GHSA-m633-g3vp-7qw3
4.7
CVSS 3.1 · Vendor: HashiCorp
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Local user access
  2. Delivery
    Create malicious symlink in template directory
  3. Exploit
    Invoke template rendering
  4. Execution
    File helper resolves symlink
  5. Persist
    Reads out-of-sandbox file
  6. Impact
    Extracts sensitive data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
Exploitation Conditions

Exploitation requires: (1) local system access with valid user authentication (PR:L per CVSS vector), (2) ability to create symbolic links in or near the template working directory, (3) knowledge of the sandbox boundary or file paths to be exfiltrated, and (4) the file template helper must be in use by the consul-template configuration. Exploitation does NOT require network access or user interaction (AC:H reflects the deliberate symlink setup required rather than automatic trigger). Environments where only trusted administrators have local access, where filesystem permissions prevent symlink creation, or where the file template helper is not used are not affected.

Impact

CVSS 4.7 with local attack vector (AV:L), high complexity (AC:H), and low privilege requirement (PR:L) indicates moderate real-world risk. The vulnerability is limited to authenticated local users and requires deliberate symlink manipulation, reducing spontaneous exploitation likelihood. High confidentiality impact (C:H) is significant for environments where sensitive files are co-located with templates. Absence of EPSS score, KEV status, and POC data in provided intelligence means active exploitation is not confirmed; however, symlink-based sandbox bypasses are a known attack pattern. Risk is primarily relevant to environments where untrusted local users share access to consul-template instances or where template rendering is exposed to local privilege escalation chains. The high complexity requirement (AC:H) suggests an attacker must either craft specific filesystem conditions or possess detailed knowledge of the sandbox implementation, limiting opportunistic exploitation.

Exploit ScenarioDerived

A local authenticated user with low privileges on a system running consul-template creates a symbolic link within or accessible to the template sandbox that points to a sensitive file outside the sandbox (e.g., /etc/passwd or application configuration containing credentials). When the file template helper processes the symlink, the insufficient link resolution validation allows the user to read the out-of-sandbox file content, bypassing the intended sandbox restriction.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 12, 2026

Sandbox path bypass in consul-template before 0.42.0 allows local authenticated users to read files outside the intended sandbox via symlink attack in the file template helper. The vulnerability requires local access and elevated privileges but grants high confidentiality impact. Vendor-released patch available in version 0.42.0.

RemediationAI

Upgrade consul-template to version 0.42.0 or later immediately. This is the vendor-released patch that resolves the symlink-based sandbox bypass. Organizations unable to upgrade immediately should restrict local user access to systems running consul-template and disable file template helper functionality if not required for operations. Additionally, enforce strict filesystem permissions to prevent untrusted users from creating symlinks in directories where templates are rendered or where template input files are stored. Monitor template execution logs for suspicious file access patterns or symlink traversal attempts. Note that restricting the file helper may impact template functionality, so coordinate with application teams before implementing this control.

Affected VersionsENISA

Tooling 0.1.0 <0.42.0

Affected Packages

euvd tooling fix: 0.42.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

consul-template is a HashiCorp tool that manages template rendering using data from Consul. The file template helper function implements a sandbox mechanism intended to restrict file access to a designated directory. The vulnerability exploits improper handling of symlinks (CWE-59: Improper Link Resolution Before File Access, a.k.a. 'link following' or 'symlink race') in the file helper, allowing an authenticated local user to bypass sandbox restrictions by crafting symlink paths that traverse outside the sandbox boundary. The CPE identifies the HashiCorp tooling product suite, and the specific vulnerability affects the templating library's file access control logic.

Know when Tooling gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (HashiCorp) PRIMARY 4.7 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Primary rating from Vendor (HashiCorp) · only source for this CVE.

CVSS VectorVendor: HashiCorp

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
May 12, 2026 - 16:02 EUVD
CVE Published
May 12, 2026 - 13:58 nvd
MEDIUM 4.7

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy