CVE-2023-3518 JWT Auth in L7 Intentions Allow For Mismatched Service Identity and JWT Providers for Access

High 7.4 Published Updated

Attackers can bypass service identity checks in Consul's JWT authentication, gaining unauthorized access to services.

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-2023-3518?

CVE-2023-3518 is a high-severity authentication bypass vulnerability in HashiCorp Consul, published on 9 Aug 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

HashiCorp Consul and Consul Enterprise 1.16.0 when using JWT Auth for service mesh incorrectly allows/denies access regardless of service identities. Fixed in 1.16.1.

Weakness: CWE-266

Which versions are affected by CVE-2023-3518?

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.16.01.16.1
github.com/hashicorp/consul GoFrom 1.16.01.16.1
github.com/hashicorp/consul GoFrom 1.16.01.16.1
consul BitnamiFrom 1.16.01.16.1

Products include Hashicorp Consul.

How do I fix CVE-2023-3518?

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

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2023-3518 being exploited?

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

Sources

Also known as BIT-consul-2023-3518, GHSA-9rhf-q362-77mx, GO-2024-2704.

Is CVE-2023-3518 in your software?

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

Check your SBOMs for free