CVE-2022-24687 HashiCorp Consul Ingress Gateway Panic Can Shutdown Servers

Medium 6.5 Published Updated

A user with write permissions can register a malicious service in Consul clusters with Ingress Gateways, causing server panics and denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-24687?

CVE-2022-24687 is a medium-severity denial of service vulnerability in n/a, published on 24 Feb 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

HashiCorp Consul and Consul Enterprise 1.9.0 through 1.9.14, 1.10.7, and 1.11.2 clusters with at least one Ingress Gateway allow a user with service:write to register a specifically-defined service that can cause Consul servers to panic. Fixed in 1.9.15, 1.10.8, and 1.11.3.

Which versions are affected by CVE-2022-24687?

8 open source packages ship an affected version, including github.com/hashicorp/consul and consul. It affects 1 product.

PackageAffectedFixed in
github.com/hashicorp/consul GoFrom 1.10.01.10.8
github.com/hashicorp/consul GoFrom 1.10.01.10.8
github.com/hashicorp/consul GoFrom 1.11.01.11.3
github.com/hashicorp/consul GoFrom 1.11.01.11.3
github.com/hashicorp/consul GoFrom 1.8.01.9.15, 1.10.8, 1.11.3
github.com/hashicorp/consul GoFrom 1.8.01.9.15
2 more packages
github.com/hashicorp/consul GoFrom 1.8.01.9.15
consul BitnamiFrom 1.8.01.9.15, 1.10.8, 1.11.3

Products include Hashicorp Consul.

How do I fix CVE-2022-24687?

Upgrade github.com/hashicorp/consul to a fixed version for your release line: 1.10.8, 1.11.3 or 1.9.15.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2022-24687 being exploited?

There is no known exploitation of CVE-2022-24687 in the wild and no public exploit code.

Sources

Also known as BIT-consul-2022-24687, DEBIAN-CVE-2022-24687, GHSA-hj93-5fg3-3chr, GO-2022-0953, UBUNTU-CVE-2022-24687.

Is CVE-2022-24687 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free