CVE-2022-31247 Rancher: Downstream cluster privilege escalation through cluster and project role template binding (CRTB/PRTB)

Critical 9.1 Published Updated

Users with specific binding permissions can escalate privileges to owner in other projects or clusters within SUSE Rancher.

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

What is CVE-2022-31247?

CVE-2022-31247 is a critical vulnerability in SUSE Rancher, published on 7 Sep 2022. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

An Improper Authorization vulnerability in SUSE Rancher, allows any user who has permissions to create/edit cluster role template bindings or project role template bindings (such as cluster-owner, manage cluster members, project-owner and manage project members) to gain owner permission in another project in the same cluster or in another project on a different downstream cluster. This issue affects: SUSE Rancher Rancher versions prior to 2.6.7; Rancher versions prior to 2.5.16.

Weakness: CWE-285

Which versions are affected by CVE-2022-31247?

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

PackageAffectedFixed in
github.com/rancher/rancher GoFrom 2.5.02.5.16
github.com/rancher/rancher GoFrom 2.5.02.5.16
github.com/rancher/rancher GoFrom 2.6.02.6.7
github.com/rancher/rancher GoFrom 2.6.02.6.7

Products include Suse Rancher.

How do I fix CVE-2022-31247?

Upgrade github.com/rancher/rancher to a fixed version for your release line: 2.5.16 or 2.6.7.

Is CVE-2022-31247 being exploited?

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

Sources

Also known as GHSA-6x34-89p7-95wg.

Is CVE-2022-31247 in your software?

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

Check your SBOMs for free