CVE-2023-32191: Rke Full Cluster State In Configmap

Persisting RKE FullState (PKI CertificatesBundle, EncryptionConfig, RancherKubernetesEngineConfig) into a Kubernetes ConfigMap named "full-cluster-state" in kube-system exposes the cluster CA private key, etcd encryption-at-rest keys, and credentials to any principal with ConfigMap read access (e.g. the built-in `view` ClusterRole). This allows privilege esc

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0Go
greprules fetch cve-2023-32191-rke-full-cluster-state-in-configmap --engine opengrep

Description

Persisting RKE FullState (PKI CertificatesBundle, EncryptionConfig, RancherKubernetesEngineConfig) into a Kubernetes ConfigMap named "full-cluster-state" in kube-system exposes the cluster CA private key, etcd encryption-at-rest keys, and credentials to any principal with ConfigMap read access (e.g. the built-in `view` ClusterRole). This allows privilege esc