CVE-2019-12291 HashiCorp Consul Incorrect Access Control vulnerability

High 7.5 Published Updated

Attackers with specific ACL tokens can delete keys outside their permitted prefix scope in HashiCorp Consul, violating access control policies.

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

What is CVE-2019-12291?

CVE-2019-12291 is a high-severity missing authorization vulnerability in n/a, published on 6 Jun 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

HashiCorp Consul 1.4.0 through 1.5.0 has Incorrect Access Control. Keys not matching a specific ACL rule used for prefix matching in a policy can be deleted by a token using that policy even with default deny settings configured.

Which versions are affected by CVE-2019-12291?

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

PackageAffectedFixed in
github.com/hashicorp/consul GoFrom 1.4.01.5.1
github.com/hashicorp/consul GoFrom 1.4.01.5.1
github.com/hashicorp/consul GoFrom 1.4.01.5.1

Products include Hashicorp Consul.

How do I fix CVE-2019-12291?

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

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

Is CVE-2019-12291 being exploited?

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

Sources

Also known as DEBIAN-CVE-2019-12291, GHSA-h65h-v7fw-4p38, GO-2023-1852, UBUNTU-CVE-2019-12291.

Is CVE-2019-12291 in your software?

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

Check your SBOMs for free