CVE-2026-66786: Improper Control of Generation of Code ('Code Injection') in Red Hat Red Hat Advanced Cluster Management for Kubernetes 2.17
Description
A flaw was found in submariner. In cert-auth mode, the connection configuration is built using free-form strings from the Custom Resource Definition (CRD) without proper validation. A malicious cluster can exploit this by publishing a CableName that includes newlines and ipsec.conf directives. This allows an attacker to inject arbitrary configuration parameters or execute commands through leftupdown hooks, leading to remote code execution as root on the gateway node.
CVSS v3.1
Score 9.1critical
Affected software
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.17
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.17
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.17
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.17
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.17
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.17
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2.17
Red Hat
Red Hat Advanced Cluster Management for Kubernetes 2
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises from improper validation of user-supplied configuration strings in Submariner's certificate-based IPsec authentication mode within Red Hat Advanced Cluster Management for Kubernetes 2.17. Specifically, the CableName field in the CRD can contain newlines and ipsec.conf directives that are not sanitized, enabling an attacker to inject arbitrary configuration parameters or execute commands through leftupdown hooks. This leads to remote code execution with root privileges on the gateway node. The attack requires that the attacker already has cluster-admin access to a managed spoke cluster and can submit malicious Endpoint resources to the broker API, enabling lateral movement within the same ManagedClusterSet. The vulnerability does not affect the default PSK authentication mode, which uses a different code path not susceptible to this injection.
Potential Impact
Successful exploitation results in remote code execution as root on the gateway node, compromising confidentiality, integrity, and availability of the affected cluster. It enables an attacker with prior cluster-admin access on a managed spoke cluster to perform lateral movement to other clusters within the same ManagedClusterSet. However, exploitation requires enabling two non-default configurations (certificate-based IPsec authentication mode and integration with OVN-Kubernetes IPsec) and prior compromise of a spoke cluster, limiting the attack surface.
Mitigation Recommendations
Red Hat advises administrators to disable the certificate-based IPsec authentication mode by setting 'IPSecCertAuthMode: false' or removing this field in the SubmarinerConfig Custom Resource and redeploying the Submariner gateway pods. Switching to the default pre-shared key (PSK) authentication mode mitigates this vulnerability as it uses a different, unaffected code path. No other action is required if cert-auth mode is not enabled. Administrators should verify their Submariner configuration and ensure cert-auth mode is disabled unless explicitly needed.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-07-27T17:51:24.885Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-66786","vendor":"Red Hat"}]
Threat ID: 6a986636acd9273b498ff4dd
Added to database: 09/02/2026, 18:08:54 UTC
Last enriched: 09/07/2026, 11:31:07 UTC
Last updated: 10/17/2026, 18:48:21 UTC
Views: 123
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.