HashiCorp Consul Template could reveal Vault secret contents in error messages
High severity
GitHub Reviewed
Published
Aug 18, 2022
to the GitHub Advisory Database
•
Updated May 20, 2024
Package
Affected versions
< 0.27.3
>= 0.28.0, < 0.28.3
>= 0.29.0, < 0.29.2
Patched versions
0.27.3
0.28.3
0.29.2
Description
Published by the National Vulnerability Database
Aug 17, 2022
Published to the GitHub Advisory Database
Aug 18, 2022
Reviewed
Aug 30, 2022
Last updated
May 20, 2024
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.References