Vulnerabilities in pkg:golang/github.com/submariner-io/submariner-operator

PACKAGE
Advisory Identifier: GHSA-2rhx-qhxp-5jpw
Advisory Summary

CVE-2024-5042 is a MODERATE (CVSS 6.6) submariner operator sets unnecessary rbac vulnerability (CWE-250: Execution with Unnecessary Privileges) affecting Github.com/submariner io/submariner operator libraries in the Go ecosystem. The issue involves submariner operator sets unnecessary rbac permissions. Remediation is available by upgrading affected packages to version 0.16.4, 0.17.2, 0.15.4, 0.18.0-rc0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/submariner-io/submariner-operator

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/submariner-io/submariner-operator. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-2rhx-qhxp-5jpw CVE-2024-5042 MODERATE Submariner Operator sets unnecessary RBAC permissions

CVE-2024-5042 at a Glance

CVE Identifier CVE-2024-5042
GHSA Identifier GHSA-2rhx-qhxp-5jpw
Severity MODERATE
CVSS v3.1 Base Score 6.6
CWE Classification CWE-250: Execution with Unnecessary Privileges
Affected Product Github.com/submariner io/submariner operator
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.6

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

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

How to Fix CVE-2024-5042

To remediate this vulnerability, upgrade all affected Github.com/submariner io/submariner operator 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/submariner-io/submariner-operator fixed: 0.16.4
Upgrade github.com/submariner-io/submariner-operator to 0.16.4
github.com/submariner-io/submariner-operator fixed: 0.17.2
Upgrade github.com/submariner-io/submariner-operator to 0.17.2
github.com/submariner-io/submariner-operator fixed: 0.15.4
Upgrade github.com/submariner-io/submariner-operator to 0.15.4
github.com/submariner-io/submariner-operator fixed: 0.18.0-rc0
Upgrade github.com/submariner-io/submariner-operator to 0.18.0-rc0
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/submariner-io/submariner-operator

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-5042, inspect your project dependencies for Github.com/submariner io/submariner operator:

inspect dependencies for github.com/submariner-io/submariner-operator

Analyze the terminal output to locate any version of Github.com/submariner io/submariner operator in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.16.4), 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-250: Execution with Unnecessary Privileges, where the product performs an operation at a privilege level that is higher than the minimum level required, which creates new weaknesses or amplifies the consequences of other weaknesses. In Github.com/submariner io/submariner operator, 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 Submariner project. Due to unnecessary role-based access control permissions, a privileged attacker can run a malicious container on a node that may allow them to steal service account tokens and further compromise other nodes and potentially the entire cluster.

CVE-2024-5042 Affected Github.com/submariner io/submariner operator Versions

4 component(s)
Fixed Versions:
0.16.40.17.20.15.40.18.0-rc0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/submariner-io/submariner-operator
Go
≥ 0.16.0-m0
< 0.16.4
0.16.4
github.com/submariner-io/submariner-operator
Go
≥ 0.17.0-m0
< 0.17.2
0.17.2
github.com/submariner-io/submariner-operator
Go
< 0.15.4
0.15.4
github.com/submariner-io/submariner-operator
Go
≥ 0.18.0-m0
< 0.18.0-rc0
0.18.0-rc0

References

NVD — CVE-2024-5042 NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-5042
Github.com/submariner io/submariner operator Source Repository REPOSITORY
https://github.com/submariner-io/submariner-operator/issues/3041
Github.com/submariner io/submariner operator Source Repository REPOSITORY
https://github.com/submariner-io/submariner-operator/pull/3040
Github.com/submariner io/submariner operator Source Repository REPOSITORY
https://github.com/submariner-io/submariner-operator/pull/3045
Github.com/submariner io/submariner operator Source Repository REPOSITORY
https://github.com/submariner-io/submariner-operator/pull/3046
Github.com/submariner io/submariner operator Source Repository REPOSITORY
https://github.com/submariner-io/submariner-operator/pull/3049
Security Fix Commit FIX COMMIT
https://github.com/submariner-io/submariner-operator/commit/b27a04c4270e53cbff6ff8ac6245db10c204bcab
access.redhat.com/errata/rhsa-2024:45... WEB
https://access.redhat.com/errata/RHSA-2024:4591
access.redhat.com/errata/rhsa-2026:65... WEB
https://access.redhat.com/errata/RHSA-2026:6503
Github.com/submariner io/submariner operator Security Information SECURITY
https://access.redhat.com/security/cve/CVE-2024-5042
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=2280921
GitHub Advisory / Wiki ADVISORY
https://github.com/advisories/GHSA-2rhx-qhxp-5jpw
Github.com/submariner io/submariner operator Source Repository REPOSITORY
https://github.com/submariner-io/submariner-operator

Frequently Asked Questions

What is CVE-2024-5042?
CVE-2024-5042 is a security vulnerability in Github.com/submariner io/submariner operator involving Submariner Operator sets unnecessary RBAC permissions under CWE-250: Execution with Unnecessary Privileges.
Which Github.com/submariner io/submariner operator versions are affected?
Affected versions include releases prior to 0.16.4, 0.17.2, 0.15.4, 0.18.0-rc0 across affected packages: github.com/submariner-io/submariner-operator.
What version fixes CVE-2024-5042?
Upgrading to 0.16.4, 0.17.2, 0.15.4, 0.18.0-rc0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/submariner-io/submariner-operator affected?
Yes, github.com/submariner-io/submariner-operator is affected in releases prior to 0.16.4, 0.17.2, 0.15.4, 0.18.0-rc0. Upgrade your dependency to 0.16.4, 0.17.2, 0.15.4, 0.18.0-rc0 or later.
What is the CVSS score of CVE-2024-5042?
CVE-2024-5042 has a CVSS v3.1 base score of 6.6 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:H/A:N.
What CWE is associated with CVE-2024-5042?
CVE-2024-5042 is classified under CWE-250: Execution with Unnecessary Privileges (The product performs an operation at a privilege level that is higher than the minimum level required, which creates new weaknesses or amplifies the consequences of other weaknesses.).
How can I check Go dependencies for CVE-2024-5042?
Run the dependency tree command: 'inspect dependencies for github.com/submariner-io/submariner-operator'. 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-2rhx-qhxp-5jpw",
  "modified" : "2026-04-06T17:19:54Z",
  "published" : "2024-05-17T15:31:10Z",
  "aliases" : [ "CVE-2024-5042" ],
  "summary" : "Submariner Operator sets unnecessary RBAC permissions",
  "details" : "A flaw was found in the Submariner project. Due to unnecessary role-based access control permissions, a privileged attacker can run a malicious container on a node that may allow them to steal service account tokens and further compromise other nodes and potentially the entire cluster.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/submariner-io/submariner-operator"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.16.0-m0"
      }, {
        "fixed" : "0.16.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/submariner-io/submariner-operator"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.17.0-m0"
      }, {
        "fixed" : "0.17.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/submariner-io/submariner-operator"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.15.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/submariner-io/submariner-operator"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.18.0-m0"
      }, {
        "fixed" : "0.18.0-rc0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-5042"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/submariner-io/submariner-operator/issues/3041"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/submariner-io/submariner-operator/pull/3040"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/submariner-io/submariner-operator/pull/3045"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/submariner-io/submariner-operator/pull/3046"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/submariner-io/submariner-operator/pull/3049"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/submariner-io/submariner-operator/commit/b27a04c4270e53cbff6ff8ac6245db10c204bcab"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:4591"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:6503"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2024-5042"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2280921"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-2rhx-qhxp-5jpw"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/submariner-io/submariner-operator"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-250" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-17T20:03:57Z",
    "nvd_published_at" : "2024-05-17T14:15:21Z"
  }
}