High, CVSS 7.5GoPublished
HashiCorp Consul Template could reveal Vault secret contents in error messages
CVE-2022-38149 · GHSA-8449-7gc2-pwrp
- Affected
- Go github.com/hashicorp/consul-template < 0.27.3; >= 0.28.0, < 0.28.3; >= 0.29.0, < 0.29.2
- Fixed in
- 0.28.30.27.30.29.2· Vendor fix available
- Issue
- In HashiCorp Consul Template through version 0.29.1, invalid templates could inadvertently reveal the contents of Vault secret in errors returned by the template.Template.Execute 5 method, when given a template using Vault secret contents incorrectly. This method has been updated to redact Vault secrets when creating an error string, making it safe to log the error.. This issue was fixed in version 0.29.2.
Recommended action: Upgrade to 0.29.2, 0.28.3 or 0.27.3 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.