Skip to content
Fencer Vulns
high 7.5

CVE-2022-38149 json

HashiCorp Consul Template could reveal Vault secret contents in error messages

published 2022-08-17 4 y ago modified 2026-06-17 4 mo ago also GHSA-8449-7gc2-pwrp , GO-2022-0980 , EUVD-2022-6511

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.9%
EPSS 0.9% chance of exploitation in 30 days, percentile 59%
public exploits
0
none known

Summary

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.

Patch / fix

  • go github.com/hashicorp/consul-template 0.27.3, 0.28.3, 0.29.2
  • hashicorp consul_template 0.29.2
  • consul-template Alpine 3.24, Alpine 3.23, Alpine 3.22 +5 more 0.29.2-r0

alpine advisories ALPINE-CVE-2022-38149

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-38149 updated cvss 7.5

consul: Consul Template May Expose Vault Secrets When Processing Invalid Input

  • Red Hat OpenShift Container Platform 4 openshift4/topology-aware-lifecycle-manager-rhel8-operator
    affected: no fix available
  • Red Hat Openshift Container Storage 4 ocs4/cephcsi-rhel8, ocs4/mcg-rhel8-operator, ocs4/ocs-rhel8-operator, ocs4/rook-ceph-rhel8-operator
    affected: no fix planned “Out of support scope”
  • Red Hat Openshift Data Foundation 4 odf4/ocs-rhel9-operator, odf4/odf-rhel8-operator, odf4/odr-rhel8-operator, odf4/odf-multicluster-rhel9-operator
    affected: no fix available, no fix planned “Will not fix”
  • Red Hat RHODF 4.13 for RHEL 9 odf4/mcg-rhel9-operator v4.13.0-41
    fixed: vendor fix RHSA-2023:3742
  • Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/multiclusterhub-rhel8, rhacm2/cluster-curator-controller-rhel8, rhacm2/managedcluster-import-controller-rhel8 Red Hat Openshift Data Foundation 4 odf4/cephcsi-rhel9 Red Hat RHODF 4.13 for RHEL 9 odf4/cephcsi-rhel9 v4.13.0-35, odf4/mcg-cli-rhel9 v4.13.0-17, odf4/mcg-core-rhel9 v4.13.0-41, odf4/odf-console-rhel9 v4.13.0-85, odf4/ocs-rhel9-operator v4.13.0-67, odf4/odf-rhel9-operator v4.13.0-24, +17 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.87% chance of exploitation in the next 30 days, higher than 59% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
go github.com/hashicorp/consul-template
<0.27.3
>=0.28.0, <0.28.3
>=0.29.0, <0.29.2
0.27.3
0.28.3
0.29.2

Classification

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

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.