Vulnerabilities · 2022 · Hashicorp
CVE-2022-38149
Hashicorp Consul Template vulnerability
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.
Affected products
Consul Template. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Hashicorp Consul Template runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- discuss.hashicorp.com · Vendor Advisory
- discuss.hashicorp.com/t/hsec-2022-16-consul-template-may-expose-vault-secrets-when-process · Vendor Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-38149
- github.com/hashicorp/consul-template/commit/d6a6f4af219c28e67d847ba0e0b2bea8f5bb9076
- pkg.go.dev/vuln/GO-2022-0980
- github.com/advisories/GHSA-8449-7gc2-pwrp
- nvd.nist.gov/vuln/detail/CVE-2022-38149
- cve.org/CVERecord?id=CVE-2022-38149
More vulnerabilities in Hashicorp products
CVE-2025-13432CVE-2025-13357CVE-2025-12044CVE-2025-11621CVE-2025-11375CVE-2025-11374CVE-2025-8959CVE-2025-6203All 187
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.