{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-38149","published":"2022-08-17T15:15:08.607000Z","last_modified":"2026-06-17T04:56:11.863000Z","status":"Modified","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-532"],"cpes":[{"criteria":"cpe:2.3:a:hashicorp:consul_template:*:*:*:*:*:*:*:*","part":"a","vendor":"hashicorp","product":"consul_template","version_end_excluding":"0.29.2"}],"cpes_truncated":false,"vendors":["hashicorp"],"products":["hashicorp/consul_template"],"epss":{"score":0.00903,"percentile":0.57826,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-8449-7gc2-pwrp","ecosystem":"Go","name":"github.com/hashicorp/consul-template","purl":"pkg:golang/github.com/hashicorp/consul-template","ranges":[{"introduced":"0","fixed":"0.27.3"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-8449-7gc2-pwrp","ecosystem":"Go","name":"github.com/hashicorp/consul-template","purl":"pkg:golang/github.com/hashicorp/consul-template","ranges":[{"introduced":"0.28.0","fixed":"0.28.3"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-8449-7gc2-pwrp","ecosystem":"Go","name":"github.com/hashicorp/consul-template","purl":"pkg:golang/github.com/hashicorp/consul-template","ranges":[{"introduced":"0.29.0","fixed":"0.29.2"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2022-0980","ecosystem":"Go","name":"github.com/hashicorp/consul-template","purl":"pkg:golang/github.com/hashicorp/consul-template","ranges":[{"introduced":"0","fixed":"0.27.3"},{"introduced":"0.28.0","fixed":"0.28.3"},{"introduced":"0.29.0","fixed":"0.29.2"}],"versions":[],"versions_truncated":false}],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2022-38149/","html_en":"/en/cve/CVE-2022-38149/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-38149","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-38149"},"untrusted":{"vendor_name":"Hashicorp","product_name":"Consul Template","desc_en":"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.","affected":[],"references":[{"url":"https://discuss.hashicorp.com","tags":["Vendor Advisory"]},{"url":"https://discuss.hashicorp.com/t/hsec-2022-16-consul-template-may-expose-vault-secrets-when-processing-invalid-input/43215","tags":["Vendor Advisory"]}]}}