Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/rancher/rancher
  4. ›
  5. CVE-2026-44939

CVE-2026-44939: Rancher vulnerable to command injection through unsanitized YAML parameter

July 1, 2026

A critical command injection vulnerability has been identified in the Rancher Manager cluster import endpoint /v3/import/{token}_{clusterId}.yaml through unsanitized YAML parameters. This endpoint accepts an authImage query parameter that is rendered without sanitization into a generated Kubernetes manifest template. By including URL-encoded newlines in the parameter value, an attacker can break out of the image: field to inject arbitrary YAML keys and malicious configurations, such as commands to execute malicious containers.

Exploitation of this vulnerability requires the following conditions to be met:

  • Attackers must obtain a valid cluster registration token (these tokens may be exposed, for example, through documentation, screenshots, or insecure communication channels).
  • The victim’s cluster operator must execute kubectl apply against a maliciously crafted URL.

When a victim applies this compromised manifest using kubectl apply, a DaemonSet is deployed with the injected configuration. This DaemonSet:

  • Runs on all control-plane nodes with hostNetwork: true enabled.
  • Uses the cattle service account, which possesses cluster-admin privileges.
  • Mounts /etc/kubernetes directly from the host.
  • Executes attacker-controlled commands via the injected command: field.

An attacker who successfully exploits this vulnerability could:

  • Achieve full control over downstream Kubernetes clusters.
  • Execute arbitrary code on control-plane nodes with elevated privileges.
  • Access sensitive cluster secrets and configurations via the privileged service account.
  • Disrupt cluster operations by manipulating critical control-plane workloads.
  • Establish persistent access through the deployed DaemonSet.

Note: If you believe that you might have been impacted by this vulnerability, it’s highly advised to review your clusters’ logs and deployment logs for signs of malicious deployments and to rotate all service accounts and credentials that might have been exposed in such a scenario.

Please refer to the associated MITRE ATT&CK - Technique - Deploy Container for further information about this category of attack.

References

  • github.com/advisories/GHSA-mhc6-2gfq-xx62
  • github.com/rancher/rancher/commit/2aa77eb283e7451d605fb85e1bd9b1791cd73875
  • github.com/rancher/rancher/security/advisories/GHSA-mhc6-2gfq-xx62
  • nvd.nist.gov/vuln/detail/CVE-2026-44939

Code Behaviors & Features

Detect and mitigate CVE-2026-44939 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20260617231817-2aa77eb283e7, all versions starting from 2.10.0 before 2.10.12, all versions starting from 2.11.0 before 2.11.14, all versions starting from 2.12.0 before 2.12.10, all versions starting from 2.13.0 before 2.13.6, all versions starting from 2.14.0 before 2.14.2

Fixed versions

  • 0.0.0-20260617231817-2aa77eb283e7
  • 2.10.12
  • 2.11.14
  • 2.12.10
  • 2.13.6
  • 2.14.2

Solution

Upgrade to versions 0.0.0-20260617231817-2aa77eb283e7, 2.10.12, 2.11.14, 2.12.10, 2.13.6, 2.14.2 or above.

Impact 9.6 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Source file

go/github.com/rancher/rancher/CVE-2026-44939.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 12 Jul 2026 12:16:53 +0000.