CVE-2021-37218 Privilege escalation in Hashicorp Nomad

High 8.8 Published Updated

Non-server agents with valid certificates can access server-only functionality, leading to privilege escalation in HashiCorp Nomad.

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-2021-37218?

CVE-2021-37218 is a high-severity vulnerability in n/a, published on 7 Sep 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

HashiCorp Nomad and Nomad Enterprise Raft RPC layer allows non-server agents with a valid certificate signed by the same CA to access server-only functionality, enabling privilege escalation. Fixed in 1.0.10 and 1.1.4.

Weakness: CWE-295

Which versions are affected by CVE-2021-37218?

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

PackageAffectedFixed in
github.com/hashicorp/nomad GoAll versions1.0.10, 1.1.4
github.com/hashicorp/nomad GoAll versions1.0.10
github.com/hashicorp/nomad GoAll versions1.0.10
github.com/hashicorp/nomad GoFrom 1.1.01.1.4
github.com/hashicorp/nomad GoFrom 1.1.01.1.4

Products include Hashicorp Nomad.

How do I fix CVE-2021-37218?

Upgrade github.com/hashicorp/nomad to a fixed version for your release line: 1.0.10 or 1.1.4.

Is CVE-2021-37218 being exploited?

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

Sources

Also known as GHSA-c8x3-rg72-fwwg, GO-2022-0591, UBUNTU-CVE-2021-37218.

Is CVE-2021-37218 in your software?

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

Check your SBOMs for free