ADVISORIES

GitHub Advisory Database

GHSA-8449-7gc2-pwrp

HashiCorp Consul Template could reveal Vault secret contents in error messages

Details

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.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/hashicorp/consul-template
All versions before 0.27.3 (fixed in 0.27.3)
Gogithub.com/hashicorp/consul-template
From 0.28.0 before 0.28.3 (fixed in 0.28.3)
Gogithub.com/hashicorp/consul-template
From 0.29.0 before 0.29.2 (fixed in 0.29.2)

References