Bug 2509774 (CVE-2026-66808) - CVE-2026-66808 hypershift-addon-operator: hypershift-addon-operator: unsanitized hub ConfigMap data passed as CLI arguments to privileged install Job (argument injection)
Summary: CVE-2026-66808 hypershift-addon-operator: hypershift-addon-operator: unsaniti...
Keywords:
Status: NEW
Alias: CVE-2026-66808
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-31 13:34 UTC by OSIDB Bzimport
Modified: 2026-08-06 20:30 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-31 13:34:24 UTC
A flaw was found in hypershift-addon-operator. The buildOtherInstallFlags() function in pkg/install/hypershift.go reads arbitrary key-value pairs from the hypershift-operator-install-flags ConfigMap and appends them unsanitized as CLI arguments to the hypershift install Job. A hub-cluster namespace administrator with write access to this ConfigMap can inject arbitrary flags into the privileged install Job, enabling arbitrary image pull and cluster-admin code execution on managed spoke clusters.

The vulnerable code path is: pkg/install/hypershift.go lines 428-506 (buildOtherInstallFlags) and pkg/install/install_job.go lines 19-41 (Job construction). The install Job runs with elevated privileges sufficient to deploy the HyperShift operator on spoke clusters.

Attack scenario: An attacker with namespace-admin privileges on the hub cluster writes crafted entries to the hypershift-operator-install-flags ConfigMap. When the addon-manager reconciles, it invokes buildOtherInstallFlags() which blindly converts ConfigMap data entries into --key=value flags passed to the hypershift install command. The attacker can inject flags such as --image-refs to pull a malicious operator image, achieving cluster-admin execution on the target spoke cluster.

This vulnerability was identified during an authorized security assessment (Project Glasswing). Execution was proven in a controlled test environment.


Note You need to log in before you can comment on or make changes to this bug.