Advisory

GHSA-8449-7gc2-pwrp

Also known as: CVE-2022-38149, GO-2022-0980

Summary

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-08-18 00:00 UTC
Modified
2024-05-20 21:32 UTC

Affected packages and fixes

github.com/hashicorp/consul-template

Go · All systems

Affected

  • introduced 0, fixed 0.27.3 (semver)

Fixed versions

0.27.3

Fix

github.com/hashicorp/consul-template

Go · All systems

Affected

  • introduced 0.28.0, fixed 0.28.3 (semver)

Fixed versions

0.28.3

Fix

github.com/hashicorp/consul-template

Go · All systems

Affected

  • introduced 0.29.0, fixed 0.29.2 (semver)

Fixed versions

0.29.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences