What’s Vulnerable › Vulnerabilities
CVE-2022-38149
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-08-17 · updated 2026-06-17
- Weakness: CWE-532
Description
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
- HashiCorp Consul Template: before 0.29.2 — fixed in 0.29.2
How to fix
Upgrade to a fixed version: HashiCorp Consul Template 0.29.2. Check the vendor advisory for mitigations.
References
- https://discuss.hashicorp.com
- https://discuss.hashicorp.com/t/hsec-2022-16-consul-template-may-expose-vault-secrets-when-processing-invalid-input/43215
- https://discuss.hashicorp.com
- https://discuss.hashicorp.com/t/hsec-2022-16-consul-template-may-expose-vault-secrets-when-processing-invalid-input/43215
Get alerted when CVE-2022-38149 or the next vulnerability affects your stack