Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/rancher/rancher
  4. ›
  5. CVE-2023-32196

CVE-2023-32196: Rancher's External RoleTemplates can lead to privilege escalation

June 17, 2024 (updated October 16, 2024)

A vulnerability has been identified whereby privilege escalation checks are not properly enforced for RoleTemplateobjects when external=true, which in specific scenarios can lead to privilege escalation.

The bug in the webhook rule resolver ignores rules from a ClusterRole for external RoleTemplates when its context is set to either project or is left empty. The fix introduces a new field to the RoleTemplate CRD named ExternalRules. The new field will be used to resolve rules directly from the RoleTemplate. Additionally, rules from the backing ClusterRole will be used if ExternalRules is not provided. The new field will always take precedence when it is set, and serve as the source of truth for rules used when creating Rancher resources on the local cluster.

Please note that this is a breaking change for external RoleTemplates, when context is set to project or empty and the backing ClusterRole does not exist, as this was not previously required.

References

  • bugzilla.suse.com/show_bug.cgi?id=CVE-2023-32196
  • github.com/advisories/GHSA-64jq-m7rq-768h
  • github.com/rancher/rancher
  • github.com/rancher/rancher/security/advisories/GHSA-64jq-m7rq-768h
  • nvd.nist.gov/vuln/detail/CVE-2023-32196

Code Behaviors & Features

Detect and mitigate CVE-2023-32196 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.7.0 before 2.7.14, all versions starting from 2.8.0 before 2.8.5

Fixed versions

  • 2.7.14
  • 2.8.5

Solution

Upgrade to versions 2.7.14, 2.8.5 or above.

Impact 6.6 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-269: Improper Privilege Management

Source file

go/github.com/rancher/rancher/CVE-2023-32196.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:16 +0000.