CVE-2022-29153: Github.com/hashicorp/consul Hashicorp Consul HTTP Health Check Vulnerability
HIGHCVE-2022-29153 is a HIGH (CVSS 7.5) hashicorp consul http health check vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Github.com/hashicorp/consul libraries in the Go ecosystem. The issue involves hashicorp consul http health check endpoints returning an http redirect may be abused as ssrf vector. Remediation is available by upgrading affected packages to version 1.9.17, 1.10.10, 1.11.5.
CVE-2022-29153 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2022-29153
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.17
Upgrade github.com/hashicorp/consul to 1.10.10
Upgrade github.com/hashicorp/consul to 1.11.5
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-29153, 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.17), 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. 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-29153 Affected Github.com/hashicorp/consul Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/hashicorp/consul
|
Go |
< 1.9.17
|
1.9.17
|
|
github.com/hashicorp/consul
|
Go |
≥ 1.10.0
< 1.10.10
|
1.10.10
|
|
github.com/hashicorp/consul
|
Go |
≥ 1.11.0
< 1.11.5
|
1.11.5
|
References
Frequently Asked Questions
What is CVE-2022-29153?
Which Github.com/hashicorp/consul versions are affected?
What version fixes CVE-2022-29153?
Is github.com/hashicorp/consul affected?
What is the CVSS score of CVE-2022-29153?
What CWE is associated with CVE-2022-29153?
How can I check Go dependencies for CVE-2022-29153?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q6h7-4qgw-2j9p",
"modified" : "2022-12-27T00:58:20Z",
"published" : "2022-04-20T00:00:33Z",
"aliases" : [ "CVE-2022-29153" ],
"summary" : "Hashicorp Consul HTTP health check endpoints returning an HTTP redirect may be abused as SSRF vector",
"details" : "A vulnerability was identified in Consul and Consul Enterprise (“Consul”) such that HTTP health check endpoints returning an HTTP redirect may be abused as a vector for server-side request forgery (SSRF). This vulnerability, CVE-2022-29153, was fixed in Consul 1.9.17, 1.10.10, and 1.11.5.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/hashicorp/consul"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.9.17"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/hashicorp/consul"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.10.0"
}, {
"fixed" : "1.10.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/hashicorp/consul"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.11.0"
}, {
"fixed" : "1.11.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-29153"
}, {
"type" : "WEB",
"url" : "https://discuss.hashicorp.com"
}, {
"type" : "WEB",
"url" : "https://discuss.hashicorp.com/t/hcsec-2022-10-consul-s-http-health-check-may-allow-server-side-request-forgery"
}, {
"type" : "WEB",
"url" : "https://discuss.hashicorp.com/t/hcsec-2022-10-consul-s-http-health-check-may-allow-server-side-request-forgery/38393"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/hashicorp/consul"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RBODKZL7HQE5XXS3SA2VIDVL4LAA5RWH"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RBODKZL7HQE5XXS3SA2VIDVL4LAA5RWH"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202208-09"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20220602-0005"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-04-28T21:13:56Z",
"nvd_published_at" : "2022-04-19T16:17:00Z"
}
}