CVE-2023-2816 Consul Envoy Extension Downsteam Proxy Configuration By Upstream Service Owner

High 8.7 Published Updated

Users with service write permissions can modify remote proxy configurations for services they do not own, bypassing intended access controls.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-2816?

CVE-2023-2816 is a high-severity missing authorization vulnerability in HashiCorp Consul, published on 2 Jun 2023. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Consul and Consul Enterprise allowed any user with service:write permissions to use Envoy extensions configured via service-defaults to patch remote proxy instances that target the configured service, regardless of whether the user has permission to modify the service(s) corresponding to those modified proxies.

Weakness: CWE-266

Which versions are affected by CVE-2023-2816?

4 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.15.01.15.3
github.com/hashicorp/consul GoFrom 1.15.01.15.3
github.com/hashicorp/consul GoFrom 1.15.01.15.3
consul BitnamiFrom 1.15.01.15.3

Products include Hashicorp Consul.

How do I fix CVE-2023-2816?

Upgrade github.com/hashicorp/consul to 1.15.3 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2023-2816 being exploited?

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

Sources

Also known as AZL-27396, AZL-35303, BIT-consul-2023-2816, GHSA-rqjq-ww83-wv5c, GO-2023-1828, UBUNTU-CVE-2023-2816.

Is CVE-2023-2816 in your software?

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

Check your SBOMs for free