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

CVE-2021-25318: Rancher does not properly specify ApiGroup when creating Kubernetes RBAC resources

April 24, 2024

A vulnerability was discovered in Rancher versions 2.0 through the aforementioned fixed versions, where users were granted access to resources regardless of the resource’s API group. For example Rancher should have allowed users access to apps.catalog.cattle.io, but instead incorrectly gave access to apps.*.

References

  • bugzilla.suse.com/show_bug.cgi?id=1184913
  • github.com/advisories/GHSA-f9xf-jq4j-vqw4
  • github.com/rancher/rancher
  • github.com/rancher/rancher/issues/33590
  • nvd.nist.gov/vuln/detail/CVE-2021-25318

Code Behaviors & Features

Detect and mitigate CVE-2021-25318 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.0.0 before 2.4.16, all versions starting from 2.5.0 before 2.5.9

Fixed versions

  • 2.4.16
  • 2.5.9

Solution

Upgrade to versions 2.4.16, 2.5.9 or above.

Impact 8.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-732: Incorrect Permission Assignment for Critical Resource

Source file

go/github.com/rancher/rancher/CVE-2021-25318.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:38 +0000.