CVE-2022-38149
Linux Alpine vulnerability analysis and mitigation

Overview

HashiCorp Consul Template versions up to 0.27.2, 0.28.2, and 0.29.1 contained a vulnerability that could expose Vault secrets when processing invalid input. The vulnerability (CVE-2022-38149) was discovered in August 2022 and affects the template processing functionality when using Vault secret contents incorrectly (HashiCorp Advisory).

Technical details

The vulnerability exists in the *template.Template.Execute method of Consul Template. When given a template using Vault secret contents incorrectly, the method could inadvertently reveal the contents of Vault secrets in the returned error messages. The vulnerability has a CVSS v3.1 base score of 7.5 (High), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, indicating it is network accessible, requires low attack complexity, and can result in high confidentiality impact (NVD).

Impact

The primary impact of this vulnerability is the potential exposure of sensitive Vault secrets through error messages when template processing fails. This could lead to unauthorized disclosure of confidential information stored in Vault (HashiCorp Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Consul Template versions 0.27.3, 0.28.3, and 0.29.2. The fix involves updating the *template.Template.Execute method to redact Vault secrets when creating error strings. Organizations should upgrade to these or newer versions to remediate the vulnerability (HashiCorp Advisory).

Additional resources


SourceThis report was generated using AI

Related Linux Alpine vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68121N/AN/A
  • Linux DebianLinux Debian
  • golang-1.19
NoYesJan 16, 2026
CVE-2025-68119N/AN/A
  • Linux DebianLinux Debian
  • golang-1.19
NoYesJan 16, 2026
CVE-2025-61731N/AN/A
  • Linux DebianLinux Debian
  • golang-1.15
NoYesJan 16, 2026
CVE-2025-61730N/AN/A
  • Linux DebianLinux Debian
  • go
NoYesJan 16, 2026
CVE-2025-61728N/AN/A
  • Linux DebianLinux Debian
  • go
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management