CVE-2022-38149Hashicorp Consul Template
High 7.5 No auth needed
Follow: this CVE · Hashicorp · Hashicorp Consul Template We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 58
- Auth required
- No
- Published
- Aug 17, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-532
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
HashiCorp Consul Template up to 0.27.2, 0.28.2, and 0.29.1 may expose the contents of Vault secrets in the error returned by the *template.Template.Execute method, when given a template using Vault secret contents incorrectly. Fixed in 0.27.3, 0.28.3, and 0.29.2.
What to do
- Apply the vendor's security update for Consul Template.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/hashicorp/consul-template |
< 0.27.3 |
0.27.3 |
go get github.com/hashicorp/consul-template@v0.27.3 |
| Go | github.com/hashicorp/consul-template |
≥ 0.28.0 < 0.28.3 |
0.28.3 |
go get github.com/hashicorp/consul-template@v0.28.3 |
| Go | github.com/hashicorp/consul-template |
≥ 0.29.0 < 0.29.2 |
0.29.2 |
go get github.com/hashicorp/consul-template@v0.29.2 |
| Go | github.com/hashicorp/consul-template |
< 0.27.3 |
0.27.3 |
go get github.com/hashicorp/consul-template@v0.27.3 |
| Go | github.com/hashicorp/consul-template |
≥ 0.28.0 < 0.28.3 |
0.28.3 |
go get github.com/hashicorp/consul-template@v0.28.3 |
| Go | github.com/hashicorp/consul-template |
≥ 0.29.0 < 0.29.2 |
0.29.2 |
go get github.com/hashicorp/consul-template@v0.29.2 |
Per OSV / GitHub Advisories (GHSA-8449-7gc2-pwrp, GO-2022-0980). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| hashicorp | consul_template | < 0.29.2 |
Official sources
References
Links published by the sources. Open them with care.
- discuss.hashicorp.com Vendor Advisory
- discuss.hashicorp.com Vendor Advisory