Vulnerabilities in pkg:golang/github.com/rancher/rke2

PACKAGE
Advisory Summary

GHSA-x7xj-jvwp-97rv is a CRITICAL (CVSS 9.1) rke2 allows privilege escalation vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Github.com/rancher/rke2 libraries in the Go ecosystem. The issue involves rke2 allows privilege escalation in windows nodes due to insecure access control lists. Remediation is available by upgrading affected packages to version 1.27.15, 1.28.11, 1.29.6, 1.30.2.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/rancher/rke2

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/rancher/rke2. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-x7xj-jvwp-97rv - CRITICAL RKE2 allows privilege escalation in Windows nodes due to Insecure Access Control Lists
GHSA-p45j-vfv5-wprq CVE-2023-32186 HIGH RKE2 supervisor port is vulnerable to unauthenticated remote denial-of-service (DoS) attack via TLS SAN stuffing attack

GHSA-x7xj-jvwp-97rv at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-x7xj-jvwp-97rv
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product Github.com/rancher/rke2
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-x7xj-jvwp-97rv

To remediate this vulnerability, upgrade all affected Github.com/rancher/rke2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/rancher/rke2 fixed: 1.27.15
Upgrade github.com/rancher/rke2 to 1.27.15
github.com/rancher/rke2 fixed: 1.28.11
Upgrade github.com/rancher/rke2 to 1.28.11
github.com/rancher/rke2 fixed: 1.29.6
Upgrade github.com/rancher/rke2 to 1.29.6
github.com/rancher/rke2 fixed: 1.30.2
Upgrade github.com/rancher/rke2 to 1.30.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/rancher/rke2

How to Check if You Are Affected

To determine whether your application is affected by GHSA-x7xj-jvwp-97rv, inspect your project dependencies for Github.com/rancher/rke2:

inspect dependencies for github.com/rancher/rke2

Analyze the terminal output to locate any version of Github.com/rancher/rke2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.27.15), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Github.com/rancher/rke2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact A vulnerability has been identified whereby RKE2 deployments in Windows nodes have weak Access Control Lists (ACL), allowing `BUILTIN\Users` or `NT AUTHORITY\Authenticated Users` to view or edit sensitive files which could lead to privilege escalation. The affected files include binaries, scripts, configuration and log files: ``` C:\etc\rancher\node\password C:\var\lib\rancher\rke2\agent\logs\kubelet.log C:\var\lib\rancher\rke2\data\v1.**.**-rke2r*-windows-amd64-*\bin\* C:\var\lib\rancher\rke2\bin\* ``` **This vulnerability is exclusive to RKE2 in Windows environments. Linux environments are not affected by it.** Please consult the associated [MITRE ATT&CK - Technique - Exploitation for Privilege Escalation](https://attack.mitre.org/techniques/T1068/) for further information about this category of attack. ### Patches Patched versions include RKE2 `1.31.0`, `1.30.2`, `1.29.6`, `1.28.11` and `1.27.15`. ### Workarounds Users are advised to do a fresh install of their RKE2 Windows nodes using a patched RKE2 version. When that is not possible, users can enforce stricter ACLs for all sensitive files affected by this Security Advisory running [this](https://github.com/rancherlabs/support-tools/blob/master/windows-access-control-lists/README.md) PowerShell script as an Administrator on each node. ### References - [CVE-2023-32197](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-32197) - [Rancher Manager’s GHSA-7h8m-pvw3-5gh4](https://github.com/rancher/rancher/security/advisories/GHSA-7h8m-pvw3-5gh4) ### For more information If you have any questions or comments about this advisory: - Reach out to the [SUSE Rancher Security team](https://github.com/rancher/rancher/security/policy) for security related inquiries. - Open an issue in the [Rancher](https://github.com/rancher/rancher/issues/new/choose) repository. - Verify with our [support matrix](https://www.suse.com/suse-rancher/support-matrix/all-supported-versions/) and [product support lifecycle](https://www.suse.com/lifecycle/).

GHSA-x7xj-jvwp-97rv Affected Github.com/rancher/rke2 Versions

4 component(s)
Fixed Versions:
1.27.151.28.111.29.61.30.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/rancher/rke2
Go
≥ 1.27.0
< 1.27.15
1.27.15
github.com/rancher/rke2
Go
≥ 1.28.0
< 1.28.11
1.28.11
github.com/rancher/rke2
Go
≥ 1.29.0
< 1.29.6
1.29.6
github.com/rancher/rke2
Go
≥ 1.30.0
< 1.30.2
1.30.2

References

Frequently Asked Questions

What is GHSA-x7xj-jvwp-97rv?
GHSA-x7xj-jvwp-97rv is a security vulnerability in Github.com/rancher/rke2 involving RKE2 allows privilege escalation in Windows nodes due to Insecure Access Control Lists under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which Github.com/rancher/rke2 versions are affected?
Affected versions include releases prior to 1.27.15, 1.28.11, 1.29.6, 1.30.2 across affected packages: github.com/rancher/rke2.
What version fixes GHSA-x7xj-jvwp-97rv?
Upgrading to 1.27.15, 1.28.11, 1.29.6, 1.30.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/rancher/rke2 affected?
Yes, github.com/rancher/rke2 is affected in releases prior to 1.27.15, 1.28.11, 1.29.6, 1.30.2. Upgrade your dependency to 1.27.15, 1.28.11, 1.29.6, 1.30.2 or later.
What is the CVSS score of GHSA-x7xj-jvwp-97rv?
GHSA-x7xj-jvwp-97rv has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with GHSA-x7xj-jvwp-97rv?
GHSA-x7xj-jvwp-97rv is classified under CWE-732: Incorrect Permission Assignment for Critical Resource (The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.).
How can I check Go dependencies for GHSA-x7xj-jvwp-97rv?
Run the dependency tree command: 'inspect dependencies for github.com/rancher/rke2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-x7xj-jvwp-97rv",
  "modified" : "2024-10-25T19:39:07Z",
  "published" : "2024-10-25T19:39:07Z",
  "aliases" : [ ],
  "summary" : "RKE2 allows privilege escalation in Windows nodes due to Insecure Access Control Lists",
  "details" : "### Impact\n\nA vulnerability has been identified whereby RKE2 deployments in Windows nodes have weak Access Control Lists (ACL), allowing `BUILTIN\\Users` or `NT AUTHORITY\\Authenticated Users` to view or edit sensitive files which could lead to privilege escalation.\n\nThe affected files include binaries, scripts, configuration and log files:\n\n```\nC:\\etc\\rancher\\node\\password\nC:\\var\\lib\\rancher\\rke2\\agent\\logs\\kubelet.log\nC:\\var\\lib\\rancher\\rke2\\data\\v1.**.**-rke2r*-windows-amd64-*\\bin\\*\nC:\\var\\lib\\rancher\\rke2\\bin\\*\n```\n\n**This vulnerability is exclusive to RKE2 in Windows environments. Linux environments are not affected by it.**\n\nPlease consult the associated [MITRE ATT&CK - Technique - Exploitation for Privilege Escalation](https://attack.mitre.org/techniques/T1068/) for further information about this category of attack.\n\n\n### Patches\n\nPatched versions include RKE2 `1.31.0`, `1.30.2`, `1.29.6`, `1.28.11` and `1.27.15`.\n\n### Workarounds\n\nUsers are advised to do a fresh install of their RKE2 Windows nodes using a patched RKE2 version. \nWhen that is not possible, users can enforce stricter ACLs for all sensitive files affected by this Security Advisory running [this](https://github.com/rancherlabs/support-tools/blob/master/windows-access-control-lists/README.md) PowerShell script as an Administrator on each node.\n\n### References\n\n- [CVE-2023-32197](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-32197)\n- [Rancher Manager’s GHSA-7h8m-pvw3-5gh4](https://github.com/rancher/rancher/security/advisories/GHSA-7h8m-pvw3-5gh4)\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n- Reach out to the [SUSE Rancher Security team](https://github.com/rancher/rancher/security/policy) for security related inquiries.\n- Open an issue in the [Rancher](https://github.com/rancher/rancher/issues/new/choose) repository.\n- Verify with our [support matrix](https://www.suse.com/suse-rancher/support-matrix/all-supported-versions/) and [product support lifecycle](https://www.suse.com/lifecycle/).\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/rancher/rke2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.27.0"
      }, {
        "fixed" : "1.27.15"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/rancher/rke2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.28.0"
      }, {
        "fixed" : "1.28.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/rancher/rke2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.29.0"
      }, {
        "fixed" : "1.29.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/rancher/rke2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.30.0"
      }, {
        "fixed" : "1.30.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rancher/rancher/security/advisories/GHSA-7h8m-pvw3-5gh4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rancher/rke2/security/advisories/GHSA-x7xj-jvwp-97rv"
  }, {
    "type" : "WEB",
    "url" : "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-32197"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rancher/rke2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269", "CWE-732" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-10-25T19:39:07Z",
    "nvd_published_at" : null
  }
}