Live threats

All CVEs / Hashicorp

CVE-2022-38149Hashicorp Consul Template

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Consul Template.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
hashicorpconsul_template< 0.29.2

Official sources

References

Links published by the sources. Open them with care.