{"cve":"CVE-2022-38149","nvd":{"published":"2022-08-17T15:15:08.607","modified":"2026-06-17T04:56:11.863","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5},"cwes":["CWE-532"],"references":["https://discuss.hashicorp.com","https://discuss.hashicorp.com/t/hsec-2022-16-consul-template-may-expose-vault-secrets-when-processing-invalid-input/43215","https://discuss.hashicorp.com","https://discuss.hashicorp.com/t/hsec-2022-16-consul-template-may-expose-vault-secrets-when-processing-invalid-input/43215"],"products":["hashicorp:consul_template"],"source":"nvd","synced_at":"2026-10-19T21:34:18.502168378+00:00"},"epss":{"cve":"CVE-2022-38149","score":0.00849,"percentile":0.58158,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8449-7gc2-pwrp","url":"https://osv.dev/vulnerability/GHSA-8449-7gc2-pwrp","summary":"HashiCorp Consul Template could reveal Vault secret contents in error messages","modified":"2024-05-20T21:32:47Z","packages":[{"ecosystem":"Go","name":"github.com/hashicorp/consul-template","purl":"pkg:golang/github.com/hashicorp/consul-template","ranges":["<0.27.3"],"fixed":["0.27.3"]},{"ecosystem":"Go","name":"github.com/hashicorp/consul-template","purl":"pkg:golang/github.com/hashicorp/consul-template","ranges":[">=0.28.0 <0.28.3"],"fixed":["0.28.3"]},{"ecosystem":"Go","name":"github.com/hashicorp/consul-template","purl":"pkg:golang/github.com/hashicorp/consul-template","ranges":[">=0.29.0 <0.29.2"],"fixed":["0.29.2"]}]},{"id":"GO-2022-0980","url":"https://osv.dev/vulnerability/GO-2022-0980","summary":"Exposure of Vault secrets via error messages in github.com/hashicorp/consul-template","modified":"2024-05-20T16:03:47Z","packages":[{"ecosystem":"Go","name":"github.com/hashicorp/consul-template","purl":"pkg:golang/github.com/hashicorp/consul-template","ranges":["<0.27.3",">=0.28.0 <0.28.3",">=0.29.0 <0.29.2"],"fixed":["0.27.3","0.28.3","0.29.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}