CVE-2024-25131: Github.com/openshift/must gather OpenShift Must Gather Operator Improper Vulnerability

HIGH
Advisory Identifier: GHSA-77c2-c35q-254w
CVSS 8.8
CWE-20 CWE-1336
Published
Advisory Summary

CVE-2024-25131 is a HIGH (CVSS 8.8) openshift must gather operator improper vulnerability (CWE-20: Improper Input Validation) affecting Github.com/openshift/must gather libraries in the Go ecosystem. The issue involves openshift must gather operator improper input validation vulnerability. Remediation is available by upgrading affected packages to version 0.0.0-20240604173837-d1557bc283dd.

CVE-2024-25131 at a Glance

CVE Identifier CVE-2024-25131
GHSA Identifier GHSA-77c2-c35q-254w
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-20: Improper Input Validation
Affected Product Github.com/openshift/must gather
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-25131

To remediate this vulnerability, upgrade all affected Github.com/openshift/must gather dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/openshift/must-gather fixed: 0.0.0-20240604173837-d1557bc283dd
Upgrade github.com/openshift/must-gather to 0.0.0-20240604173837-d1557bc283dd
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/openshift/must-gather

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-25131, inspect your project dependencies for Github.com/openshift/must gather:

inspect dependencies for github.com/openshift/must-gather

Analyze the terminal output to locate any version of Github.com/openshift/must gather in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20240604173837-d1557bc283dd), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Github.com/openshift/must gather, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2024-25131 Affected Github.com/openshift/must gather Versions

1 component(s)
Fixed Versions:
0.0.0-20240604173837-d1557bc283dd
Product / Package Ecosystem Affected Versions Fixed Version
github.com/openshift/must-gather
Go
< 0.0.0-20240604173837-d1557bc283dd
0.0.0-20240604173837-d1557bc283dd

References

Frequently Asked Questions

What is CVE-2024-25131?
CVE-2024-25131 is a security vulnerability in Github.com/openshift/must gather involving OpenShift Must Gather Operator Improper Input Validation vulnerability under CWE-20: Improper Input Validation.
Which Github.com/openshift/must gather versions are affected?
Affected versions include releases prior to 0.0.0-20240604173837-d1557bc283dd across affected packages: github.com/openshift/must-gather.
What version fixes CVE-2024-25131?
Upgrading to 0.0.0-20240604173837-d1557bc283dd (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/openshift/must-gather affected?
Yes, github.com/openshift/must-gather is affected in releases prior to 0.0.0-20240604173837-d1557bc283dd. Upgrade your dependency to 0.0.0-20240604173837-d1557bc283dd or later.
What is the CVSS score of CVE-2024-25131?
CVE-2024-25131 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-25131?
CVE-2024-25131 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Go dependencies for CVE-2024-25131?
Run the dependency tree command: 'inspect dependencies for github.com/openshift/must-gather'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-77c2-c35q-254w",
  "modified" : "2024-12-19T22:18:27Z",
  "published" : "2024-12-19T15:31:11Z",
  "aliases" : [ "CVE-2024-25131" ],
  "summary" : "OpenShift Must Gather Operator Improper Input Validation vulnerability",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/openshift/must-gather"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20240604173837-d1557bc283dd"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-25131"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openshift/must-gather-operator/pull/135"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openshift/must-gather-operator/pull/138"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2024-25131"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2258856"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openshift/must-gather-operator"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1336", "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-12-19T22:18:27Z",
    "nvd_published_at" : "2024-12-19T15:15:07Z"
  }
}