{"answers":{"affected":"9 open source packages ship an affected version, including github.com/rancher/rke2.","exploited":"There is no known exploitation of GHSA-x7xj-jvwp-97rv in the wild and no public exploit code.","fix":"Upgrade github.com/rancher/rke2 to a fixed version for your release line: 1.27.15, 1.28.11, 1.29.6 or 1.30.2.","what":"GHSA-x7xj-jvwp-97rv is a vulnerability in github.com/rancher/rke2, published on 25 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-x7xj-jvwp-97rv and fix it if it is affected.\n\nWhat it is: GHSA-x7xj-jvwp-97rv is a vulnerability in github.com/rancher/rke2, published on 25 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-x7xj-jvwp-97rv in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/rancher/rke2 (Go): affected all versions; no fix listed\n- github.com/rancher/rke2 (Go): affected from 1.27.0; fixed in 1.27.15\n- github.com/rancher/rke2 (Go): affected from 1.27.0; fixed in 1.27.15\n- github.com/rancher/rke2 (Go): affected from 1.28.0; fixed in 1.28.11\n- github.com/rancher/rke2 (Go): affected from 1.28.0; fixed in 1.28.11\n- github.com/rancher/rke2 (Go): affected from 1.29.0; fixed in 1.29.6\n- github.com/rancher/rke2 (Go): affected from 1.29.0; fixed in 1.29.6\n- github.com/rancher/rke2 (Go): affected from 1.30.0; fixed in 1.30.2\n- github.com/rancher/rke2 (Go): affected from 1.30.0; fixed in 1.30.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-x7xj-jvwp-97rv/ (Markdown: https://insights.sbomify.com/GHSA-x7xj-jvwp-97rv/index.md)","id":"GHSA-x7xj-jvwp-97rv","markdown":"https://insights.sbomify.com/GHSA-x7xj-jvwp-97rv/index.md","name":"GHSA-x7xj-jvwp-97rv","record":{"aliases":["GO-2024-3222"],"analysis":{"component_type":"operating_system","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"RKE2 Windows nodes","requires_auth":"low_privilege","summary":"Weak ACLs on Windows RKE2 nodes allow low-privileged users to modify sensitive files, leading to privilege escalation.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### 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\u0026CK - Technique - Exploitation for Privilege Escalation](https://attack.mitre.org/techniques/T1068/) for further information about this category of attack.\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/).","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"RKE2 allows privilege escalation in Windows nodes due to Insecure Access Control Lists","id":"GHSA-x7xj-jvwp-97rv","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"privilege_escalation","year":"2024"},"n_packages":9,"n_references":null,"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/rancher/rke2","purl":"pkg:golang/github.com/rancher/rke2","source":"GO-2024-3222"},{"ecosystem":"Go","fixed":["1.27.15"],"introduced":["1.27.0"],"last_affected":[],"package":"github.com/rancher/rke2","purl":null,"source":"GHSA-x7xj-jvwp-97rv"},{"ecosystem":"Go","fixed":["1.27.15"],"introduced":["1.27.0"],"last_affected":[],"package":"github.com/rancher/rke2","purl":"pkg:golang/github.com/rancher/rke2","source":"GHSA-x7xj-jvwp-97rv"},{"ecosystem":"Go","fixed":["1.28.11"],"introduced":["1.28.0"],"last_affected":[],"package":"github.com/rancher/rke2","purl":null,"source":"GHSA-x7xj-jvwp-97rv"},{"ecosystem":"Go","fixed":["1.28.11"],"introduced":["1.28.0"],"last_affected":[],"package":"github.com/rancher/rke2","purl":"pkg:golang/github.com/rancher/rke2","source":"GHSA-x7xj-jvwp-97rv"},{"ecosystem":"Go","fixed":["1.29.6"],"introduced":["1.29.0"],"last_affected":[],"package":"github.com/rancher/rke2","purl":null,"source":"GHSA-x7xj-jvwp-97rv"},{"ecosystem":"Go","fixed":["1.29.6"],"introduced":["1.29.0"],"last_affected":[],"package":"github.com/rancher/rke2","purl":"pkg:golang/github.com/rancher/rke2","source":"GHSA-x7xj-jvwp-97rv"},{"ecosystem":"Go","fixed":["1.30.2"],"introduced":["1.30.0"],"last_affected":[],"package":"github.com/rancher/rke2","purl":null,"source":"GHSA-x7xj-jvwp-97rv"},{"ecosystem":"Go","fixed":["1.30.2"],"introduced":["1.30.0"],"last_affected":[],"package":"github.com/rancher/rke2","purl":"pkg:golang/github.com/rancher/rke2","source":"GHSA-x7xj-jvwp-97rv"}],"products":null,"published":"2024-10-25","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Weak ACLs on Windows RKE2 nodes allow low-privileged users to modify sensitive files, leading to privilege escalation.","url":"https://insights.sbomify.com/GHSA-x7xj-jvwp-97rv/"}