CVE-2022-24687: Github.com/hashicorp/consul HashiCorp Consul Ingress Gateway Panic Vulnerability
MODERATECVE-2022-24687 is a MODERATE (CVSS 6.5) hashicorp consul ingress gateway panic vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Github.com/hashicorp/consul libraries in the Go ecosystem. The issue involves hashicorp consul ingress gateway panic can shutdown servers. Remediation is available by upgrading affected packages to version 1.9.15, 1.10.8, 1.11.3.
CVE-2022-24687 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2022-24687
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.9.15
Upgrade github.com/hashicorp/consul to 1.10.8
Upgrade github.com/hashicorp/consul to 1.11.3
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-2022-24687, 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.9.15), 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited 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-2022-24687 Affected Github.com/hashicorp/consul Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/hashicorp/consul
|
Go |
≥ 1.8.0
< 1.9.15
|
1.9.15
|
|
github.com/hashicorp/consul
|
Go |
≥ 1.10.0
< 1.10.8
|
1.10.8
|
|
github.com/hashicorp/consul
|
Go |
≥ 1.11.0
< 1.11.3
|
1.11.3
|
References
Frequently Asked Questions
What is CVE-2022-24687?
Which Github.com/hashicorp/consul versions are affected?
What version fixes CVE-2022-24687?
Is github.com/hashicorp/consul affected?
What is the CVSS score of CVE-2022-24687?
What CWE is associated with CVE-2022-24687?
How can I check Go dependencies for CVE-2022-24687?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hj93-5fg3-3chr",
"modified" : "2022-08-18T19:07:23Z",
"published" : "2022-02-25T00:01:01Z",
"aliases" : [ "CVE-2022-24687" ],
"summary" : "HashiCorp Consul Ingress Gateway Panic Can Shutdown Servers",
"details" : "HashiCorp Consul and Consul Enterprise 1.8.0 through 1.9.14, 1.10.7, and 1.11.2 has Uncontrolled Resource Consumption. Clusters with at least one ingress gateway configured may allow a user with `service:write` permission to register a specifically-defined service that can cause the Consul server to panic and shutdown. Versions 1.9.15, 1.10.8, and 1.11.3 contain patches for the problem.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/hashicorp/consul"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.8.0"
}, {
"fixed" : "1.9.15"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.9.14"
}
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/hashicorp/consul"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.10.0"
}, {
"fixed" : "1.10.8"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.10.7"
}
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/hashicorp/consul"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.11.0"
}, {
"fixed" : "1.11.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.11.2"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24687"
}, {
"type" : "WEB",
"url" : "https://discuss.hashicorp.com"
}, {
"type" : "WEB",
"url" : "https://discuss.hashicorp.com/t/hcsec-2022-05-consul-ingress-gateway-panic-can-shutdown-servers"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/hashicorp/consul"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202208-09"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20220331-0006"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-08-18T19:07:23Z",
"nvd_published_at" : "2022-02-24T16:15:00Z"
}
}