CVE-2026-87114

Kube-compare: container:// reference extraction runs the image entrypoint and silently escalates to sudo

Published Sep 28, 2026 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
Description
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.

Remediation

Vendor 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.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.19::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.20::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4 cpe:/a:redhat:openshift:4.21::el9
cpe:/a:redhat:openshift:4.22::el9
References
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Redhat openshift Container Platform
Redhat pen Drive Powered By Red Hat Lightspeed
Vendors & Products Redhat openshift Container Platform
Redhat pen Drive Powered By Red Hat Lightspeed
Type Values Removed Values Added
Description 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.
Title Kube-compare: container:// reference extraction runs the image entrypoint and silently escalates to sudo
First Time appeared Redhat
Redhat openshift
Redhat pdrive Lightspeed
Weaknesses CWE-829
CPEs cpe:/a:redhat:openshift:4
cpe:/a:redhat:pdrive_lightspeed:1
Vendors & Products Redhat
Redhat openshift
Redhat pdrive Lightspeed
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Oct 7, 2026, 2:09 PM
Reserved
Sep 8, 2026, 8:41 PM
Status
Awaiting Analysis
Published
Sep 28, 2026, 5:17 PM
Modified
Oct 7, 2026, 3:17 PM
Severity
Important
Public date
Sep 28, 2026, 4:15 PM