Medium
Consul-template vulnerable to sandbox path bypass in file helper via a symlink attack
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-5061
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 04:02 UTC · Revision 1
Source evidence
Consul-template vulnerable to sandbox path bypass in file helper via a symlink attack
core-osv · Original sourcePublished 12 May 2026, 13:58 UTC
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.
osv:CVE-2026-5061
Complete source record
{
"id": "5b7f842a2e43c058e950c3b6a207a4bc3c9249ed7b5000546228709164f09225",
"url": "https://osv.dev/vulnerability/CVE-2026-5061",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Consul-template vulnerable to sandbox path bypass in file helper via a symlink attack",
"summary": "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.",
"evidence": "osv:CVE-2026-5061",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-5061",
"aliases": [
"BIT-consul-2026-5061",
"CVE-2026-5061"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/hashicorp/consul-template",
"type": "GIT",
"events": [
{
"introduced": "b9b30140a200a33734c610302c244abe39fc8477"
},
{
"fixed": "c1ad4f969318a621c95c87c1efb79f3ef490adb5"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0.1.0"
},
{
"fixed": "0.42.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
}
],
"versions": [
"v0.41.4",
"v0.41.3",
"v0.41.2",
"v0.40.0",
"v0.39.1",
"v0.39.0",
"v0.38.1",
"v0.38.0",
"v0.37.6",
"v0.37.5",
"v0.37.4",
"v0.37.3",
"v0.37.2",
"v0.37.1",
"v0.37.0",
"v0.36.0",
"v0.35.0",
"v0.34.0",
"v0.33.0",
"v0.32.0",
"v0.31.0",
"v0.30.0",
"v0.29.6",
"v0.29.5",
"v0.29.4",
"v0.29.3",
"v0.29.2",
"v0.27.2",
"v0.29.1",
"v0.29.0",
"v0.28.0",
"v0.27.1",
"v0.27.0",
"v0.26.0",
"v0.25.2",
"v0.25.1",
"v0.25.0",
"v0.24.1",
"v0.24.0",
"v0.23.0",
"v0.22.1",
"v0.22.0",
"v0.21.3",
"v0.21.2",
"v0.21.1",
"v0.21.0",
"v0.20.1",
"v0.20.0",
"v0.19.5",
"v0.19.4",
"v0.19.3",
"v0.19.2",
"v0.19.1",
"v0.19.0",
"v0.18.5",
"v0.18.4",
"v0.18.3",
"v0.18.2",
"v0.18.1",
"v0.18.0",
"v0.18.0-rc3",
"v0.18.0-rc1",
"v0.16.0",
"v0.16.0-rc1",
"v0.15.0",
"v0.14.0",
"v0.13.0",
"v0.12.2",
"v0.12.1",
"v0.12.0",
"v0.11.1",
"v0.11.0",
"v0.10.0",
"v0.9.0",
"v0.8.0",
"v0.7.0",
"v0.6.5",
"v0.6.1",
"v0.6.0",
"v0.5.1",
"v0.5.0",
"v0.4.0",
"v0.3.1",
"v0.3.0",
"v0.2.0",
"v0.1.1",
"v0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-5061.json"
}
}
],
"modified": "2026-10-28T02:30:49.764390282Z",
"provider": "osv",
"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/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5061.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-5061",
"https://github.com/hashicorp/consul-template"
],
"provider_metadata": {
"cwe_ids": [
"CWE-59"
],
"cna_assigner": "HashiCorp",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5061.json"
}
},
"related_cves": [
{
"value": "CVE-2026-5061",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 517972,
"published_at": "2026-05-12T13:58:20.409+00:00"
}