{"id":"CVE-2022-38149","aliases":["GHSA-8449-7gc2-pwrp","GO-2022-0980"],"url":"https://o3.security/vulnerability/CVE-2022-38149","summary":"HashiCorp Consul Template could reveal Vault secret contents in error messages","details":"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.","published":"2022-08-17T14:30:53Z","modified":"2026-08-12T03:51:15.746405738Z","cvss":{"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"},"epss":{"score":0.00826,"percentile":0.54287,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/hashicorp/consul-template","fixedVersion":"0.27.3"},{"ecosystem":"Go","name":"github.com/hashicorp/consul-template","fixedVersion":"0.28.3"},{"ecosystem":"Go","name":"github.com/hashicorp/consul-template","fixedVersion":"0.29.2"}],"fix":null,"references":[{"type":"WEB","url":"https://discuss.hashicorp.com"},{"type":"WEB","url":"https://discuss.hashicorp.com/t/hsec-2022-16-consul-template-may-expose-vault-secrets-when-processing-invalid-input/43215"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/38xxx/CVE-2022-38149.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-38149"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:15.746405738Z"}}