CVE-2022-38149: High severity hashicorp consul vulnerability

Published Aug 16, 2022
·
Updated

A vulnerability was found in the HashiCorp Consul Template. This issue may reveal the contents of a Vault secret when used with an invalid template.

Other sources

A vulnerbility was found in Consul Template that may reveal the contents of a Vault secret in errors returned by the (template.Template).Execute method, when a template that uses Vault secret.content incorrectly.

Red Hat

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.

In HashiCorp Consul Template through version 0.29.1, invalid templates could inadvertently reveal the contents of Vault secret in errors returned by the template.Template.Execute 5 method, when given a template using Vault secret contents incorrectly. This method has been updated to redact Vault secrets when creating an error string, making it safe to log the error.. This issue was fixed in version 0.29.2.

GitHub

Affected Software

5 affected componentsFixes available
redhat/consul-template<0.29.2
0.29.2
go/github.com/hashicorp/consul-template>=0.29.0<0.29.2
0.29.2
go/github.com/hashicorp/consul-template>=0.28.0<0.28.3
0.28.3
go/github.com/hashicorp/consul-template<0.27.3
0.27.3
HashiCorp Consul Template<0.29.2

Event History

Aug 16, 2022
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 17, 2022
CVE Published
via MITRE·02:30 PM
Data Sourced
via MITRE·02:30 PM
Description
Aug 18, 2022
Advisory Published
via GitHub·12:00 AM

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID?

The vulnerability ID is CVE-2022-38149.

2

What is the severity of CVE-2022-38149?

The severity of CVE-2022-38149 is high with a CVSS score of 7.5.

3

Which software versions are affected by CVE-2022-38149?

HashiCorp Consul Template versions up to 0.27.2, 0.28.2, and 0.29.1 are affected by CVE-2022-38149.

4

How can I fix CVE-2022-38149?

To fix CVE-2022-38149, update HashiCorp Consul Template to version 0.29.2 or higher.

5

Are there any references available for CVE-2022-38149?

Yes, you can find references for CVE-2022-38149 at the following links: [Reference 1](https://access.redhat.com/errata/RHSA-2023:3742), [Reference 2](https://access.redhat.com/security/cve/cve-2022-38149), [Reference 3](https://bugzilla.redhat.com/show_bug.cgi?id=2119551).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203