# CVE-2024-5042: Submariner-operator: rbac permissions can allow for the spread of node compromises

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.6
- **CVSS:** 6.6 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: High; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.64% (percentile 45, 2026-11-26)
- **CWE:** CWE-250
- **Aliases:** GHSA-2rhx-qhxp-5jpw, GO-2024-2866
- **Published:** 2024-05-17T13:12:00.551Z
- **Modified:** 2026-10-14T00:17:12.470Z

## Who should check

- Projects that depend on Go package github.com/submariner-io/submariner-operator (\>= 0.16.0-m0, \< 0.16.4)
- Anyone running submariner-operator \< 0.14.9; \>= 0.15.0, \< 0.15.5; \>= 0.16.0, \< 0.16.7; \>= 0.17.0, \< 0.17.2; \>= 0.18.0-m0, \< 0.18.0-rc0
- Anyone running Red Hat RHODF-4.16-RHEL-9 all versions
- Anyone running Red Hat Openshift Data Foundation 4.20 all versions
- Anyone running Red Hat Advanced Cluster Management for Kubernetes 2 all versions

## Description

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.

## Affected and fixed versions

- Go `github.com/submariner-io/submariner-operator`: affected \>= 0.16.0-m0, \< 0.16.4; fixed 0.16.4, 0.17.2, 0.15.4, 0.18.0-rc0 (osv)
- submariner-operator: \< 0.14.9; \>= 0.15.0, \< 0.15.5; \>= 0.16.0, \< 0.16.7; \>= 0.17.0, \< 0.17.2; \>= 0.18.0-m0, \< 0.18.0-rc0 (cvelist)
- Red Hat RHODF-4.16-RHEL-9: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Openshift Data Foundation 4.20: all versions (cvelist)
- Red Hat Advanced Cluster Management for Kubernetes 2: all versions (cvelist)
- Red Hat Advanced Cluster Management for Kubernetes 2: all versions (cvelist)
- Red Hat Advanced Cluster Management for Kubernetes 2: all versions (cvelist)
- Red Hat Advanced Cluster Management for Kubernetes 2: all versions (cvelist)
- Red Hat Advanced Cluster Management for Kubernetes 2: all versions (cvelist)
- Red Hat Advanced Cluster Management for Kubernetes 2: all versions (cvelist)

## Mitigation

- Upgrade github.com/submariner-io/submariner-operator to one of 0.16.4, 0.17.2, 0.15.4, 0.18.0-rc0 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-5042. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-5042.md
Affected: github.com/submariner-io/submariner-operator >= 0.16.0-m0, < 0.16.4
Fixed in: 0.16.4, 0.17.2, 0.15.4, 0.18.0-rc0

Steps:
1. Search this machine and project for github.com/submariner-io/submariner-operator (Go), submariner-operator, Red Hat RHODF-4.16-RHEL-9, Red Hat Openshift Data Foundation 4.20, Red Hat Advanced Cluster Management for Kubernetes 2: 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.
```

## FAQ

### Is CVE-2024-5042 being exploited?

There is no confirmed exploitation: CVE-2024-5042 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.64% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-5042?

Medium: CVSS 6.6 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-5042?

github.com/submariner-io/submariner-operator \>= 0.16.0-m0, \< 0.16.4.

### Is there a fix for CVE-2024-5042?

Yes. Fixed in 0.16.4, 0.17.2, 0.15.4, 0.18.0-rc0. Upgrade github.com/submariner-io/submariner-operator to one of 0.16.4, 0.17.2, 0.15.4, 0.18.0-rc0 (or later in the same release line).

### How do I check if I'm affected by CVE-2024-5042?

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.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2024:4591>
- vendor: <https://access.redhat.com/errata/RHSA-2026:6503>
- vendor: <https://github.com/advisories/GHSA-2rhx-qhxp-5jpw>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-5042>
- patch: <https://github.com/submariner-io/submariner-operator/pull/3040>
- patch: <https://github.com/submariner-io/submariner-operator/pull/3045>
- patch: <https://github.com/submariner-io/submariner-operator/pull/3046>
- patch: <https://github.com/submariner-io/submariner-operator/pull/3049>
- patch: <https://github.com/submariner-io/submariner-operator/commit/b27a04c4270e53cbff6ff8ac6245db10c204bcab>
- other: <https://access.redhat.com/security/cve/CVE-2024-5042>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2280921>
- other: <https://github.com/submariner-io/submariner-operator/issues/3041>
- other: <https://github.com/submariner-io/submariner-operator>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-5042>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-2rhx-qhxp-5jpw> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-2866> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-5042> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-5042>
