Skip to content
OpenAdvisories
Medium · 4.7 Public exploit CVE-2026-5061 EUVD-2026-29483GHSA-m633-g3vp-7qw3

Consul-template vulnerable to sandbox path bypass in file helper via a symlink attack

Published May 12, 2026 · Updated May 12, 2026 · Assigned by HashiCorp

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.

Affected products

VendorProductAffectedFixed
HashiCorp Tooling 0.1.0 – < 0.42.0 0.42.0

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • 0xmrma/CVE-2026-5061 ★ 1 · Aug 1, 2026

    Consul Template validated where a symlink pointed during template evaluation, but its later dependency fetch read the original path. Retargeting the link between those operations turned an in-sandbox…

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

References