Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐹 Go

GHSA-6gr4-52w6-vmqx

CRITICAL

GHSA-6gr4-52w6-vmqx is a critical-severity (CVSS 9.9) CWE-922 vulnerability in github.com/rancher/rke. O3 Security confirms whether GHSA-6gr4-52w6-vmqx is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.

rke's credentials are stored in the RKE1 Cluster state ConfigMap

Also known asCVE-2023-32191GO-2024-2930
Published
Jun 17, 2024
Updated
Oct 16, 2024
Affected
2 pkgs
Patched
2 / 2
Exploits
None indexed

Blast Radius

2 pkgs affected
🐹github.com/rancher/rke🐹github.com/rancher/rke

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.

Description

Impact

When RKE provisions a cluster, it stores the cluster state in a configmap called full-cluster-state inside the kube-system namespace of the cluster itself. This cluster state object contains information used to set up the K8s cluster, which may include the following sensitive data:

  • RancherKubernetesEngineConfig
    • RKENodeConfig
      • SSH username
      • SSH private key
      • SSH private key path
    • RKEConfigServices
      • ETCDService
        • External client key
        • BackupConfig
          • S3BackupConfig
            • AWS access key
            • AWS secret key
      • KubeAPIService
        • SecretsEncryptionConfig
          • K8s encryption configuration (contains encryption keys)
    • PrivateRegistries
      • User
      • Password
      • ECRCredentialPlugin
        • AWS access key
        • AWS secret key
        • AWS session token
    • CloudProvider
      • AzureCloudProvider
        • AAD client ID
        • AAD client secret
        • AAD client cert password
      • OpenstackCloudProvider
        • Username
        • User ID
        • Password
      • VsphereCloudProvider
        • GlobalVsphereOpts
          • User
          • Password
        • VirtualCenterConfig
          • User
          • Password
      • HarvesterCloudProvider
        • CloudConfig
      • CustomCloudProvider
    • BastionHost
      • User
      • SSH key
  • CertificatesBundle
    • Private key
  • EncryptionConfig
    • Private key

The State type that contains the above info and more can viewed here.

While the full-cluster-state configmap is not publicly available (reading it requires access to the RKE cluster), it being a configmap makes it available to non-administrators of the cluster. Because this configmap contains essentially all the information and credentials required to administer the cluster, anyone with permission to read it thereby achieves admin-level access to the cluster (please consult the MITRE ATT&CK - Technique - Unsecured Credentials : Credentials In Files for further information about the associated technique of attack).

Important: For the exposure of credentials not related to Rancher and RKE, the final impact severity for confidentiality, integrity and availability is dependent on the permissions the leaked credentials have on their services.

It is recommended to review for potentially leaked credentials in this scenario and to change them if deemed necessary.

Patches

This vulnerability is being fixed in RKE versions 1.4.19 and 1.5.10 which are included in Rancher versions 2.7.14 and 2.8.5.

The patches include changes that will cause RKE to automatically migrate the cluster state configmap to a full-cluster-state secret in the kube-system namespace. The migrated secret will only be accessible to those who have read access to the kube-system namespace in the downstream RKE cluster. In Rancher, only admin and cluster-owner roles can access the secret. The old configmap will be removed after successful migration.

All downstream clusters provisioned using RKE via Rancher will be migrated automatically on Rancher upgrade. Note that any downstream clusters that are unavailable or otherwise non migratable on Rancher upgrade will still be migrated automatically as soon as they become available.

Clusters provisioned using RKE outside of Rancher will be migrated automatically upon the next invocation of rke up (i.e. the next cluster reconciliation) after upgrading RKE.

If a rollback needs to be performed after an upgrade to a patched Rancher or RKE version, downstream RKE clusters that were migrated need to have their migrations manually reversed using this script: https://github.com/rancherlabs/support-tools/tree/master/reverse-rke-state-migrations. Please be sure to back up downstream clusters before performing the reverse migration.

Workarounds

There are no workarounds for this issue. Users are recommended to upgrade, as soon as possible, to a version of RKE/Rancher Manager which contains the fixes.

Users should not attempt to perform this migration manually without upgrading their RKE/Rancher versions as only post-patch versions of RKE are capable of reading the cluster state from a secret instead of a configmap. In other words, migrating the cluster state to a secret without upgrading RKE/Rancher would cause RKE to be unable to read the cluster state, making it incapable of managing the cluster until an RKE/Rancher upgrade is performed.

For more information

If you have any questions or comments about this advisory:

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
🐹Gogithub.com/rancher/rke1.4.18&&< 1.4.191.4.19
🐹Gogithub.com/rancher/rke1.5.9&&< 1.5.101.5.10

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/rancher/rke. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    Update github.com/rancher/rke to 1.4.19 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-6gr4-52w6-vmqx is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether GHSA-6gr4-52w6-vmqx is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to GHSA-6gr4-52w6-vmqx. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

### Impact When RKE provisions a cluster, it stores the cluster state in a configmap called `full-cluster-state` inside the `kube-system` namespace of the cluster itself. This cluster state object contains information used to set up the K8s cluster, which may include the following sensitive data: - RancherKubernetesEngineConfig - RKENodeConfig - SSH username - SSH private key - SSH private key path - RKEConfigServices - ETCDService - External client key - BackupConfig - S3BackupConfig - AWS access key
O3 Security · Impact-Aware SCA

Is GHSA-6gr4-52w6-vmqx in your dependencies?

O3 detects GHSA-6gr4-52w6-vmqx across Go dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.