CVE-2026-5061

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

State
Published
Severity
4.7 Medium
Published
May 12, 2026
Updated
May 12, 2026
Reserved
Mar 27, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.14.7 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:NHashiCorp

Weaknesses

  • CWE-59 Improper Link Resolution Before File Access (Link Following)

Affected Products

ProductVersions
ToolingHashiCorp
  • 0.1.0 to before 0.42.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.