ZeroHour

CVE-2026-87993

large

Information disclosure in consul-template leaks Vault secrets into logs and Nomad events

CVSS 3.1
7.7 high
EPSS
Published
()
Modified
AI analysis

consul-template versions before 0.43.0 contain an information disclosure flaw (CWE-532): when template rendering fails, the error handling path can embed interpolated Vault secret values directly in the resulting error message. Anyone who can trigger a template error and view the output — console output, log files, or downstream surfaces such as Nomad task events — can read otherwise-protected Vault secret values from that message. The impact is secret exposure to holders of log/event read access rather than remote compromise, which is consistent with the CVSS 7.7 score (low privileges required, high confidentiality impact only, scope changed because secrets leak across a boundary into Nomad task events). Affected are users running consul-template prior to 0.43.0 with Vault-backed templates, including deployments where Nomad renders templates and surfaces errors as task events. No public proof-of-concept, CISA KEV listing, or reports of in-the-wild exploitation are known; the fix is available in consul-template 0.43.0.

What to do: Upgrade all consul-template installations to 0.43.0 or later, and check for bundled/embedded copies used with Nomad or other integrations, updating them per HashiCorp guidance. Until upgraded, restrict read access to template error logs and Nomad task events, avoid logging full template errors at verbose levels, and review recent log/event history to identify and rotate any Vault secrets that may have been rendered into error messages.

Affected
HashiCorp consul-templateall versions prior to 0.43.0
Estimated exposure
largeorder of tens of thousands of deployments (individual agent/server systems likely 100k+) — No published install counts exist for this tool, so this is an estimate based on deployment patterns: consul-template is a long-standing, widely used component of HashiCorp Vault/Consul/Nomad stacks and typically runs on every server or…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

The consul-template library is vulnerable to an information disclosure issue in its error handling path that may allow Vault secret values to appear in template error messages, log output, and downstream surfaces such as Nomad task events. This vulnerability (CVE-2026-87993) is fixed in consul-template 0.43.0.

Weakness
CWE-532
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

In the news

No ingested article mentions this CVE yet.