# HCSEC-2026-02 - Consul Vulnerable to Arbitrary File Reads Through the Vault Kubernetes Authentication Provider

**URL:** <https://discuss.hashicorp.com/t/hcsec-2026-02-consul-vulnerable-to-arbitrary-file-reads-through-the-vault-kubernetes-authentication-provider/77232>\
**Category:** Security\
**Tags:** security-consul\
**Created:** [March 11, 2026, 11:07pm UTC](https://discuss.hashicorp.com/t/hcsec-2026-02-consul-vulnerable-to-arbitrary-file-reads-through-the-vault-kubernetes-authentication-provider/77232 "2026-03-11T23:07:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dduzgun-security](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/dduzgun-security/32/39433_2.png) [@dduzgun-security](https://discuss.hashicorp.com/u/dduzgun-security)\
**Post date:** [March 11, 2026, 11:07pm UTC](https://discuss.hashicorp.com/t/hcsec-2026-02-consul-vulnerable-to-arbitrary-file-reads-through-the-vault-kubernetes-authentication-provider/77232/1 "2026-03-11T23:07:23Z")

</div>

**Bulletin ID:** HCSEC-2026-02  
**Affected Products / Versions:**  
Consul Community Edition up to 1.22.4, fixed in 1.22.5.  
Consul Enterprise up to 1.18.20, 1.21.10 and 1.22.4 fixed in 1.18.21, 1.21.11 and 1.22.5.

**Publication Date:** March 11, 2026

**Summary**  
HashiCorp Consul and Consul Enterprise 1.18.20 up to 1.21.10 and 1.22.4 are vulnerable to arbitrary file read when configured with Kubernetes authentication. This vulnerability, CVE-2026-2808, is fixed in Consul 1.18.21, 1.21.11 and 1.22.5.

**Background**  
The [Consul kubernetes auth method](https://developer.hashicorp.com/consul/docs/secure/acl/auth-method/k8s) type allows for a Kubernetes service account token to be used to authenticate to Consul within a Kubernetes pod.

**Details**  
When the Connect CA provider uses Vault with Kubernetes authentication method, it reads a ServiceAccount token from a file path specified by the `token_path` configuration parameter. A privileged attacker with the operator write permission can set the token\_path to any file on the Consul server node. The file contents are then returned as `jwt` data and sent to Vault as part of the Kubernetes authentication request. This leads to potential arbitrary file read and exfiltration from the Consul server host and can result in sensitive data leak. Consul will now only read Kubernetes service accounts tokens from a [defined subset of directories](https://developer.hashicorp.com/consul/docs/secure-mesh/certificate/vault#params).

**Remediation**  
Customers using Consul’s should evaluate the risk associated with this issue and consider upgrading to Consul Community Edition 1.22.5 or Consul Enterprise 1.18.21, 1.21.11 and 1.22.5.

See Consul’s [Upgrading](https://developer.hashicorp.com/consul/docs/upgrading) documentation for general guidance on this process.

**Acknowledgement**  
This issue was identified by Defang Bo.

_We deeply appreciate any effort to coordinate disclosure of security vulnerabilities. For information about security at HashiCorp and the reporting of security vulnerabilities, please see [https://hashicorp.com/security](https://hashicorp.com/security)._
