Vulnerabilities in pkg:golang/github.com/openshift/openshift-controller-manager

PACKAGE
Advisory Identifier: GHSA-j8gh-87rx-c7w9
Advisory Summary

CVE-2024-45496 is a MODERATE (CVSS 9.9) openshift controller manager improper privilege vulnerability (CWE-269: Improper Privilege Management) affecting Github.com/openshift/openshift controller manager libraries in the Go ecosystem. The issue involves openshift controller manager improper privilege management. Remediation is available by upgrading affected packages to version 0.0.0-alpha.0.0.20240911.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/openshift/openshift-controller-manager

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/openshift/openshift-controller-manager. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-j8gh-87rx-c7w9 CVE-2024-45496 MODERATE OpenShift Controller Manager Improper Privilege Management

CVE-2024-45496 at a Glance

CVE Identifier CVE-2024-45496
GHSA Identifier GHSA-j8gh-87rx-c7w9
Severity MODERATE
CVSS v3.1 Base Score 9.9
CWE Classification CWE-269: Improper Privilege Management
Affected Product Github.com/openshift/openshift controller manager
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.9

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:C/C:H/I:H/A:L).

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

How to Fix CVE-2024-45496

To remediate this vulnerability, upgrade all affected Github.com/openshift/openshift controller manager 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/openshift-controller-manager fixed: 0.0.0-alpha.0.0.20240911
Upgrade github.com/openshift/openshift-controller-manager to 0.0.0-alpha.0.0.20240911
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/openshift-controller-manager

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-45496, inspect your project dependencies for Github.com/openshift/openshift controller manager:

inspect dependencies for github.com/openshift/openshift-controller-manager

Analyze the terminal output to locate any version of Github.com/openshift/openshift controller manager 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-alpha.0.0.20240911), 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-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Github.com/openshift/openshift controller manager, 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 OpenShift. This issue occurs due to the misuse of elevated privileges in the OpenShift Container Platform's build process. During the build initialization step, the git-clone container is run with a privileged security context, allowing unrestricted access to the node. An attacker with developer-level access can provide a crafted .gitconfig file containing commands executed during the cloning process, leading to arbitrary command execution on the worker node. An attacker running code in a privileged container could escalate their permissions on the node running the container.

CVE-2024-45496 Affected Github.com/openshift/openshift controller manager Versions

1 component(s)
Fixed Versions:
0.0.0-alpha.0.0.20240911
Product / Package Ecosystem Affected Versions Fixed Version
github.com/openshift/openshift-controller-manager
Go
< 0.0.0-alpha.0.0.20240911
0.0.0-alpha.0.0.20240911

References

Frequently Asked Questions

What is CVE-2024-45496?
CVE-2024-45496 is a security vulnerability in Github.com/openshift/openshift controller manager involving OpenShift Controller Manager Improper Privilege Management under CWE-269: Improper Privilege Management.
Which Github.com/openshift/openshift controller manager versions are affected?
Affected versions include releases prior to 0.0.0-alpha.0.0.20240911 across affected packages: github.com/openshift/openshift-controller-manager.
What version fixes CVE-2024-45496?
Upgrading to 0.0.0-alpha.0.0.20240911 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/openshift/openshift-controller-manager affected?
Yes, github.com/openshift/openshift-controller-manager is affected in releases prior to 0.0.0-alpha.0.0.20240911. Upgrade your dependency to 0.0.0-alpha.0.0.20240911 or later.
What is the CVSS score of CVE-2024-45496?
CVE-2024-45496 has a CVSS v3.1 base score of 9.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L.
What CWE is associated with CVE-2024-45496?
CVE-2024-45496 is classified under CWE-269: Improper Privilege Management (The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.).
How can I check Go dependencies for CVE-2024-45496?
Run the dependency tree command: 'inspect dependencies for github.com/openshift/openshift-controller-manager'. 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-j8gh-87rx-c7w9",
  "modified" : "2025-01-09T09:31:40Z",
  "published" : "2024-09-17T00:31:06Z",
  "aliases" : [ "CVE-2024-45496" ],
  "summary" : "OpenShift Controller Manager Improper Privilege Management",
  "details" : "A flaw was found in OpenShift. This issue occurs due to the misuse of elevated privileges in the OpenShift Container Platform's build process. During the build initialization step, the git-clone container is run with a privileged security context, allowing unrestricted access to the node. An attacker with developer-level access can provide a crafted .gitconfig file containing commands executed during the cloning process, leading to arbitrary command execution on the worker node. An attacker running code in a privileged container could escalate their permissions on the node running the container.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/openshift/openshift-controller-manager"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-alpha.0.0.20240911"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45496"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openshift/openshift-controller-manager/commit/3af3628103f9ddc3b825e6e5243ec58e85311046"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:3718"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:6685"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:6687"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:6689"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:6691"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:6705"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2024-45496"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2308661"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openshift/openshift-controller-manager"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-3128"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-09-17T18:14:23Z",
    "nvd_published_at" : "2024-09-17T00:15:52Z"
  }
}