GHSA-x7xj-jvwp-97rv: Github.com/rancher/rke2 RKE2 Allows Privilege Escalation Vulnerability
CRITICALGHSA-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.
GHSA-x7xj-jvwp-97rv at a Glance
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).
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.
Upgrade github.com/rancher/rke2 to 1.27.15
Upgrade github.com/rancher/rke2 to 1.28.11
Upgrade github.com/rancher/rke2 to 1.29.6
Upgrade github.com/rancher/rke2 to 1.30.2
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
GHSA-x7xj-jvwp-97rv Affected Github.com/rancher/rke2 Versions
4 component(s)| 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?
Which Github.com/rancher/rke2 versions are affected?
What version fixes GHSA-x7xj-jvwp-97rv?
Is github.com/rancher/rke2 affected?
What is the CVSS score of GHSA-x7xj-jvwp-97rv?
What CWE is associated with GHSA-x7xj-jvwp-97rv?
How can I check Go dependencies for GHSA-x7xj-jvwp-97rv?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}