Red Hat OpenShift Container Platform 4.19
Kube-compare: container:// reference extraction runs the image entrypoint and silently escalates to sudo
A flaw was found in kube-compare. When processing a 'container://' reference path, the tool incorrectly executes an untrusted container image's entrypoint instead of merely extracting data from a stopped container. This allows a remote attacker to achieve arbitrary code execution on the operator's workstation. If the Docker daemon requires elevated privileges, the untrusted code may execute with root-mediated daemon privileges, posing a significant security risk.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 1790632105
Fixed in 1790707563
Fixed in 1790707362
Fixed in 1790718431
Mitigation
Upgrade Red Hat OpenShift Container Platform 4.19 to 1790632105 or later.
Upgrade Red Hat OpenShift Container Platform 4.20 to 1790707563 or later.
Upgrade Red Hat OpenShift Container Platform 4.21 to 1790707362 or later.
Upgrade Red Hat OpenShift Container Platform 4.22 to 1790718431 or later.
Workaround
To mitigate this issue, users of `kube-compare` should ensure that any container images referenced via the `container://` scheme are from trusted sources. Avoid using untrusted or unverified container images as reference paths. If `docker` is configured to require `sudo` for daemon socket access, consider reviewing `sudo` policies to limit `docker` command execution to trusted users and contexts.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:74381
- Vendor advisory access.redhat.com/errata/RHSA-2026:74384
- Vendor advisory access.redhat.com/errata/RHSA-2026:74430
1 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:74435
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.