hoch7.5
CVE-2022-38149
HashiCorp Consul Template could reveal Vault secret contents in error messages
Auswirkung
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.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| go | github.com/hashicorp/consul-template | < 0.27.3 | 0.27.3 |
Betroffene Produkte · Hashicorp
| Produkt | Betroffene Versionen |
|---|---|
| Consul Template | vor 0.29.2 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://discuss.hashicorp.com
- https://discuss.hashicorp.com/t/hsec-2022-16-consul-template-may-expose-vault-secrets-when-processing-invalid-input/43215
- https://github.com/advisories/GHSA-8449-7gc2-pwrp
- https://nvd.nist.gov/vuln/detail/CVE-2022-38149
- https://github.com/hashicorp/consul-template/commit/d6a6f4af219c28e67d847ba0e0b2bea8f5bb9076
- https://pkg.go.dev/vuln/GO-2022-0980