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

- Severity: Medium 4.7 (CVSS:3.1, scored by HashiCorp) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-05-12T13:58:20.409Z
- Modified: 2026-10-26T18:10:00.173Z
- Also known as: BIT-CONSUL-2026-5061
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- HashiCorp Tooling: from 0.1.0 before 0.42.0
- consul (Bitnami): from 0.1.0 before 0.42.0

## Every score

- HashiCorp: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://discuss.hashicorp.com/t/hcsec-2026-12-consul-template-vulnerable-to-sandbox-path-bypass-in-file-helper-through-symlink-attack/77414> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-5061> (web)

## Sources

- CVE List: [CVE-2026-5061](https://www.cve.org/CVERecord?id=CVE-2026-5061), CVE Terms of Use, modified 2026-05-12
- NVD: [CVE-2026-5061](https://nvd.nist.gov/vuln/detail/CVE-2026-5061), Public domain, modified 2026-10-26
- Bitnami Vulnerability Database: [BIT-CONSUL-2026-5061](https://osv.dev/vulnerability/BIT-CONSUL-2026-5061), Apache-2.0, modified 2026-05-14

---

Page: https://cve.day/CVE-2026-5061 · Whole record: https://cve.day/CVE-2026-5061.json · Rebuilt by cve.day 2026-11-25T22:59:21.360Z
