Symlink Attack Affecting github.com/hashicorp/consul/agent/connect/ca package, versions <1.22.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMHASHICORPCONSULAGENTCONNECTCA-15518251
  • published13 Mar 2026
  • disclosed12 Mar 2026
  • creditDefang Bo

Introduced: 12 Mar 2026

CVE-2026-2808  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade github.com/hashicorp/consul/agent/connect/ca to version 1.22.5 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack via the the Vault Kubernetes Authentication Provider. An attacker can access sensitive files by specifying token_path configuration parameter to any file on the Consul server node that later returned as jwt data and sent to Vault as part of the Kubernetes authentication request.

Note:

Consul Enterprise users have an option to upgrade to 1.18.21 or 1.21.11 versions which contain backported fix for this issue.

CVSS Base Scores

version 4.0
version 3.1