CVE-2024-25131 Openshift-dedicated: must-gather-operator: yaml template injection leads to privilege escalation

High 8.8 Published Updated

A non-privileged user can escalate to cluster administrator and pivot to AWS by crafting a MustGather object with a malicious YAML template.

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-2024-25131?

CVE-2024-25131 is a high-severity vulnerability in github.com/openshift/must-gather, published on 19 Dec 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A flaw was found in the MustGather.managed.openshift.io Custom Defined Resource (CRD) of OpenShift Dedicated. A non-privileged user on the cluster can create a MustGather object with a specially crafted file and set the most privileged service account to run the job. This can allow a standard developer user to escalate their privileges to a cluster administrator and pivot to the AWS environment.

Weakness: CWE-20

Which versions are affected by CVE-2024-25131?

3 open source packages ship an affected version, including github.com/openshift/must-gather.

PackageAffectedFixed in
github.com/openshift/must-gather GoAll versionsNone
github.com/openshift/must-gather GoAll versions0.0.0-20240604173837-d1557bc283dd
github.com/openshift/must-gather GoAll versions0.0.0-20240604173837-d1557bc283dd

How do I fix CVE-2024-25131?

Upgrade github.com/openshift/must-gather to 0.0.0-20240604173837-d1557bc283dd or later.

Is CVE-2024-25131 being exploited?

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

Sources

Also known as GHSA-77c2-c35q-254w, GO-2024-3349.

Is CVE-2024-25131 in your software?

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

Check your SBOMs for free