Incorrect Permission Assignment for Critical Resource Affecting github.com/talos-systems/talos/internal/app/trustd/internal/reg package, versions <1.2.2


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.22% (61st percentile)

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 IDSNYK-GOLANG-GITHUBCOMTALOSSYSTEMSTALOSINTERNALAPPTRUSTDINTERNALREG-3023000
  • published14 Sept 2022
  • disclosed14 Sept 2022
  • creditsmira

Introduced: 14 Sep 2022

CVE-2022-36103  (opens in a new tab)
CWE-732  (opens in a new tab)

How to fix?

Upgrade github.com/talos-systems/talos/internal/app/trustd/internal/reg to version 1.2.2 or higher.

Overview

github.com/talos-systems/talos/internal/app/trustd/internal/reg is a modern OS for running Kubernetes: secure, immutable, and minimal. Talos is fully open source, production-ready, and supported by the people at Sidero Labs All system management is done via an API - there is no shell or interactive console.

Affected versions of this package are vulnerable to Incorrect Permission Assignment for Critical Resource when a misconfigured Kubernetes environment may allow workloads to access the join token of the worker node. The vulnerability exists due to improper validation of the request while signing a worker node CSR (certificate signing request). Talos control plane node might issue a Talos API certificate, which allows full access to Talos API on a control plane node. Accessing Talos API with full-level access on a control plane node might reveal sensitive information which allows full-level access to the cluster (Kubernetes and Talos PKI, etc.).

Note:

Misconfigurations that may allow the machine configuration to be accessed on a worker node by the Kubernetes workload are:

  • Allowing a hostPath mount to mount the machine config directly from the host filesystem (hostPath mounts should not be allowed for untrusted workloads, and are disabled by default in recent versions of Talos.)
  • Reading machine configuration from a cloud metadata server from Kubernetes pods with host networking (on cloud platforms, when machine config is stored in the cloud metadata server, and the cloud metadata server doesn't provide enough protection to prevent access from non-host workloads)

CVSS Scores

version 3.1