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
Mitigation
- Upgrade github.com/openshift/must-gather to 0.0.0-20240604173837-d1557bc283dd or later.
Who should check
- Projects that depend on Go package github.com/openshift/must-gather (< 0.0.0-20240604173837-d1557bc283dd)
- Anyone running must-gather-operator < 4997ad93f0238464c626b1b4832d5b695d68517e
Vulnerability facts
- Affected
- github.com/openshift/must-gather < 0.0.0-20240604173837-d1557bc283dd
- Fixed in
- 0.0.0-20240604173837-d1557bc283dd
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 8.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 1.12% chance of exploitation in 30 days (percentile 66, 2026-11-26)
- CWE
- CWE-20
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/openshift/must-gather | < 0.0.0-20240604173837-d1557bc283dd | 0.0.0-20240604173837-d1557bc283dd | osv |
| must-gather-operator | < 4997ad93f0238464c626b1b4832d5b695d68517e | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-25131. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-25131.md Affected: github.com/openshift/must-gather < 0.0.0-20240604173837-d1557bc283dd Fixed in: 0.0.0-20240604173837-d1557bc283dd Steps: 1. Search this machine and project for github.com/openshift/must-gather (Go), must-gather-operator: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2024-25131 being exploited?
There is no confirmed exploitation: CVE-2024-25131 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.12% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-25131?
High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2024-25131?
github.com/openshift/must-gather < 0.0.0-20240604173837-d1557bc283dd.
Is there a fix for CVE-2024-25131?
Yes. Fixed in 0.0.0-20240604173837-d1557bc283dd. Upgrade github.com/openshift/must-gather to 0.0.0-20240604173837-d1557bc283dd or later.
How do I check if I'm affected by CVE-2024-25131?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.