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

CVE-2023-22651: Rancher Webhook is misconfigured during upgrade process

April 24, 2023 (updated January 29, 2025)

A failure in the update logic of Rancher’s admission Webhook may lead to the misconfiguration of the Webhook. This component enforces validation rules and security checks before resources are admitted into the Kubernetes cluster.

When the Webhook is operating in a degraded state, it no longer validates any resources, which may result in severe privilege escalations and data corruption.

The issue only affects users that upgrade from 2.6.x or 2.7.x to 2.7.2. Users that did a fresh install of 2.7.2 (and did not follow an upgrade path) are not affected.

The command below can be executed on the local cluster to determine whether the cluster is affected by this issue:

$ kubectl get validatingwebhookconfigurations.admissionregistration.k8s.io rancher.cattle.io

NAME                WEBHOOKS   AGE
rancher.cattle.io   0         19h

If the resulting webhook quantity is 0, the Rancher instance is affected.

References

  • bugzilla.suse.com/show_bug.cgi?id=CVE-2023-22651
  • github.com/advisories/GHSA-6m9f-pj6w-w87g
  • github.com/rancher/rancher
  • github.com/rancher/rancher/releases/tag/v2.7.3
  • github.com/rancher/rancher/security/advisories/GHSA-6m9f-pj6w-w87g
  • nvd.nist.gov/vuln/detail/CVE-2023-22651

Code Behaviors & Features

Detect and mitigate CVE-2023-22651 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.2 before 2.7.3, version 2.7.2

Fixed versions

  • 2.7.3

Solution

Upgrade to version 2.7.3 or above.

Impact 9.9 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-269: Improper Privilege Management
  • CWE-276: Incorrect Default Permissions

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

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