Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/hashicorp/consul-template/template
  4. ›
  5. CVE-2022-38149

CVE-2022-38149: Insertion of Sensitive Information into Log File

August 18, 2022 (updated February 9, 2023)

HashiCorp Consul Template up to 0.27.2, 0.28.2, and 0.29.1 may expose the contents of Vault secrets in the error returned by the *template.Template.Execute method, when given a template using Vault secret contents incorrectly. Fixed in 0.27.3, 0.28.3, and 0.29.2.

References

  • discuss.hashicorp.com/
  • discuss.hashicorp.com/t/hsec-2022-16-consul-template-may-expose-vault-secrets-when-processing-invalid-input/43215
  • github.com/advisories/GHSA-8449-7gc2-pwrp
  • github.com/hashicorp/consul-template/commit/d6a6f4af219c28e67d847ba0e0b2bea8f5bb9076
  • nvd.nist.gov/vuln/detail/CVE-2022-38149
  • pkg.go.dev/vuln/GO-2022-0980

Code Behaviors & Features

Detect and mitigate CVE-2022-38149 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.27.3, all versions starting from 0.28.0 before 0.28.3, all versions starting from 0.29.0 before 0.29.2

Fixed versions

  • v0.27.3
  • v0.28.3
  • v0.29.2

Solution

Upgrade to versions 0.27.3, 0.28.3, 0.29.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-532: Insertion of Sensitive Information into Log File

Source file

go/github.com/hashicorp/consul-template/template/CVE-2022-38149.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:33 +0000.