# CVE-2022-38149

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 0.29.2 (CNA); fix release not confirmed
- Status: published
- Published: 2022-08-17 · Modified: 2024-08-03
- Aliases: GHSA-8449-7gc2-pwrp, GO-2022-0980, ALPINE-CVE-2022-38149
- Record: https://cvemate.com/vulnerability/CVE-2022-38149 · JSON: https://cvemate.com/vulnerability/CVE-2022-38149/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.874%, percentile 60.188%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine consul-template (Alpine Linux): \< 0.29.2-r0
- github.com/hashicorp consul-template (Go): \< 0.27.3 \| ≥ 0.28.0, \< 0.28.3 \| ≥ 0.29.0, \< 0.29.2
- hashicorp consul\_template: \< 0.29.2

## 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://nvd.nist.gov/vuln/detail/CVE-2022-38149>
- <https://github.com/hashicorp/consul-template/commit/d6a6f4af219c28e67d847ba0e0b2bea8f5bb9076>
- <https://github.com/hashicorp/consul>
- <https://pkg.go.dev/vuln/GO-2022-0980>
- <https://security.alpinelinux.org/vuln/CVE-2022-38149>

---

Data as of 2026-12-05T10:32:36.832Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
