Incorrect Permission Assignment for Critical Resource Affecting github.com/rancher/rke2/pkg/cli/defaults package, versions <1.27.15-rc1+rke2r1 >=1.28.0 <1.28.11-rc1+rke2r1 >=1.29.0-rc1+rke2r1 <1.29.6-rc1+rke2r1 >=1.30.0-rc1+rke2r1 <1.30.2-rc1+rke2r1


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMRANCHERRKE2PKGCLIDEFAULTS-8309612
  • published 29 Oct 2024
  • disclosed 25 Oct 2024
  • credit Unknown

How to fix?

Upgrade github.com/rancher/rke2/pkg/cli/defaults to version 1.27.15-rc1+rke2r1, 1.28.11-rc1+rke2r1, 1.29.6-rc1+rke2r1, 1.30.2-rc1+rke2r1 or higher.

Overview

github.com/rancher/rke2/pkg/cli/defaults is a next-generation Kubernetes distribution for Rancher

Affected versions of this package are vulnerable to Incorrect Permission Assignment for Critical Resource in the form of weak Access Control Lists (ACL) on sensitive files on Windows nodes. A user in the groups BUILTIN\Users or NT AUTHORITY\Authenticated Users may be able to escalate privileges due to the following files and patterns not being adequately protected:

C:\etc\rancher\wins\config
C:\var\lib\rancher\agent\rancher2_connection_info.json
C:\etc\rancher\rke2\config.yaml.d\50-rancher.yaml
C:\var\lib\rancher\agent\applied\*-*-applied.plan
C:\usr\local\bin\rke2
C:\var\lib\rancher\capr\idempotence\idempotent.sh
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\*

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
9.3 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    High
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    High
  • Integrity (VI)
    High
  • Availability (VA)
    None
  • Confidentiality (SC)
    High
  • Integrity (SI)
    High
  • Availability (SA)
    High