CVE-2018-20321 Access Control Bypass

High 8.8 Published Updated

Project members can escalate privileges to cluster admin by mounting a service account in the default namespace, requiring namespace isolation for mitigation.

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-2018-20321?

CVE-2018-20321 is a high-severity vulnerability in n/a, published on 10 Apr 2019. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

An issue was discovered in Rancher 2 through 2.1.5. Any project member with access to the default namespace can mount the netes-default service account in a pod, and then use that pod to execute administrative privileged commands against the k8s cluster. This could be mitigated by isolating the default namespace in a separate project, where only cluster admins can be given permissions to access. As of 2018-12-20, this bug affected ALL clusters created or imported by Rancher.

Weakness: CWE-668

Which versions are affected by CVE-2018-20321?

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

PackageAffectedFixed in
github.com/rancher/rancher GoFrom 2.0.02.1.6
github.com/rancher/rancher GoFrom 2.0.02.1.6
github.com/rancher/rancher GoFrom 2.0.0+incompatible2.1.6+incompatible

Products include Suse Rancher.

How do I fix CVE-2018-20321?

Upgrade github.com/rancher/rancher to a fixed version for your release line: 2.1.6 or 2.1.6+incompatible.

Is CVE-2018-20321 being exploited?

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

Sources

Also known as GHSA-9qq2-xhmc-h9qr, GO-2022-0644.

Is CVE-2018-20321 in your software?

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

Check your SBOMs for free