Vulnerabilities in pkg:golang/github.com/hashicorp/consul
PACKAGECVE-2026-2808 is a MODERATE (CVSS 6.8) consul is vulnerable to arbitrary vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Github.com/hashicorp/consul libraries in the Go ecosystem. The issue involves consul is vulnerable to arbitrary file read when configured with kubernetes authentication. Remediation is available by upgrading affected packages to version 1.18.21, 1.22.5, 1.21.11.
pkg:golang/github.com/hashicorp/consul
Vulnerability advisories affecting package pkg:golang/github.com/hashicorp/consul. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-cpfq-66p2-336j | CVE-2026-2808 | MODERATE | Consul is vulnerable to arbitrary file read when configured with Kubernetes authentication |
| GHSA-qh7p-pfq3-677h | CVE-2025-11375 | MODERATE | Consul event endpoint is vulnerable to denial of service |
| GHSA-7g3r-8c6v-hfmr | CVE-2025-11374 | MODERATE | Consul key/value endpoint is vulnerable to denial of service |
| GHSA-5c4w-8hhh-3c3h | CVE-2024-10006 | MODERATE | Hashicorp Consul Improper Neutralization of HTTP Headers for Scripting Syntax vulnerability |
| GHSA-99wr-c2px-grmh | CVE-2024-10086 | MODERATE | Hashicorp Consul Cross-site Scripting vulnerability |
| GHSA-chgm-7r52-whjj | CVE-2024-10005 | HIGH | Hashicorp Consul Path Traversal vulnerability |
| GHSA-hr3v-8cp3-68rf | CVE-2021-41803 | HIGH | HashiCorp Consul does not properly validate node or segment names prior to usage in JWT claim assertions |
| GHSA-9rhf-q362-77mx | CVE-2023-3518 | HIGH | Consul JWT Auth in L7 Intentions Allow for Mismatched Service Identity and JWT Providers |
| GHSA-6m72-467w-94rh | CVE-2020-28053 | MODERATE | Privilege Escalation in HashiCorp Consul |
| GHSA-496g-fr33-whrf | CVE-2020-25201 | HIGH | Denial of service in HashiCorp Consul |
| GHSA-hwqm-x785-qh8p | CVE-2020-12797 | MODERATE | Incorrect Permission Assignment for Critical Resource in Hashicorp Consul |
| GHSA-q2qr-3c2p-9235 | CVE-2020-12758 | MODERATE | Denial of Service (DoS) in HashiCorp Consul |
| GHSA-p2j5-3f4c-224r | CVE-2020-13170 | MODERATE | Improper Input Validation in HashiCorp Consul |
| GHSA-rqjq-mrgx-85hp | CVE-2020-13250 | HIGH | Allocation of Resources Without Limits or Throttling in Hashicorp Consul |
| GHSA-h65h-v7fw-4p38 | CVE-2019-12291 | HIGH | HashiCorp Consul Incorrect Access Control vulnerability |
| GHSA-23jv-v6qj-3fhh | CVE-2020-7219 | HIGH | Denial of Service (DoS) in HashiCorp Consul |
| GHSA-fhm8-cxcv-pwvc | CVE-2019-8336 | HIGH | HashiCorp Consul Access Restriction Bypass |
| GHSA-wj6x-hcc2-f32j | CVE-2023-0845 | MODERATE | Consul Server Panic when Ingress and API Gateways Configured with Peering Connections |
| GHSA-m69r-9g56-7mv8 | CVE-2022-40716 | MODERATE | HashiCorp Consul vulnerable to authorization bypass |
| GHSA-4qvx-qq5w-695p | CVE-2018-19653 | MODERATE | HashiCorp Consul can use cleartext agent-to-agent RPC communication |
| GHSA-q7fx-wm2p-qfj8 | CVE-2019-9764 | HIGH | HashiCorp Consul vulnerable to Origin Validation Error |
| GHSA-8xmx-h8rq-h94j | CVE-2020-25864 | MODERATE | HashiCorp Consul Cross-site Scripting vulnerability |
| GHSA-c57c-7hrj-6q6v | CVE-2023-1297 | MODERATE | Hashicorp Consul vulnerable to denial of service |
| GHSA-rqjq-ww83-wv5c | CVE-2023-2816 | HIGH | Hashicorp Consul allows user with service:write permissions to patch remote proxy instances |
| GHSA-q6h7-4qgw-2j9p | CVE-2022-29153 | HIGH | Hashicorp Consul HTTP health check endpoints returning an HTTP redirect may be abused as SSRF vector |
| GHSA-gw2g-hhc9-wgjh | CVE-2022-3920 | HIGH | Missing Authorization in HashiCorp Consul |
| GHSA-hj93-5fg3-3chr | CVE-2022-24687 | MODERATE | HashiCorp Consul Ingress Gateway Panic Can Shutdown Servers |
| GHSA-25gf-8qrr-g78r | CVE-2021-32574 | HIGH | Hashicorp Consul Missing SSL Certificate Validation |
| GHSA-8h2g-r292-j8xh | CVE-2021-36213 | HIGH | HashiCorp Consul L7 deny intention results in an allow action |
| GHSA-ccw8-7688-vqx4 | CVE-2021-37219 | HIGH | HashiCorp Consul Privilege Escalation Vulnerability |
| GHSA-6hw5-6gcx-phmw | CVE-2021-38698 | MODERATE | HashiCorp Consul and Consul Enterprise 1.10.1 Txn.Apply endpoint allowed services to register proxies for other services, enabling access to service traffic. |
| GHSA-r9w6-rhh9-7v53 | CVE-2020-7955 | MODERATE | Incorrect Authorization in HashiCorp Consul |
CVE-2026-2808 at a Glance
Security Impact
CVSS: 6.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N).
How to Fix CVE-2026-2808
To remediate this vulnerability, upgrade all affected Github.com/hashicorp/consul dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/hashicorp/consul to 1.18.21
Upgrade github.com/hashicorp/consul to 1.22.5
Upgrade github.com/hashicorp/consul to 1.21.11
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/hashicorp/consul
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-2808, inspect your project dependencies for Github.com/hashicorp/consul:
inspect dependencies for github.com/hashicorp/consul
Analyze the terminal output to locate any version of Github.com/hashicorp/consul in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.18.21), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following'), where the product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. In Github.com/hashicorp/consul, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-2808 Affected Github.com/hashicorp/consul Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/hashicorp/consul
|
Go |
< 1.18.21
|
1.18.21
|
|
github.com/hashicorp/consul
|
Go |
≥ 1.22.0-rc1
< 1.22.5
|
1.22.5
|
|
github.com/hashicorp/consul
|
Go |
≥ 1.19.0
< 1.21.11
|
1.21.11
|
References
Frequently Asked Questions
What is CVE-2026-2808?
Which Github.com/hashicorp/consul versions are affected?
What version fixes CVE-2026-2808?
Is github.com/hashicorp/consul affected?
What is the CVSS score of CVE-2026-2808?
What CWE is associated with CVE-2026-2808?
How can I check Go dependencies for CVE-2026-2808?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cpfq-66p2-336j",
"modified" : "2026-03-24T21:03:57Z",
"published" : "2026-03-12T00:31:17Z",
"aliases" : [ "CVE-2026-2808" ],
"summary" : "Consul is vulnerable to arbitrary file read when configured with Kubernetes authentication",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/hashicorp/consul"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.18.21"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/hashicorp/consul"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.22.0-rc1"
}, {
"fixed" : "1.22.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/hashicorp/consul"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.19.0"
}, {
"fixed" : "1.21.11"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-2808"
}, {
"type" : "WEB",
"url" : "https://discuss.hashicorp.com/t/hcsec-2026-02-consul-vulnerable-to-arbitrary-file-reads-through-the-vault-kubernetes-authentication-provider/77232"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/hashicorp/consul"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2026-4690"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-59" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-12T17:34:04Z",
"nvd_published_at" : "2026-03-12T00:16:11Z"
}
}