CVE-2021-25318: rancher: API group not properly specified when creating Kubernetes RBAC resources

Published Jul 15, 2021
·
Updated

A Incorrect Permission Assignment for Critical Resource vulnerability in Rancher allows users in the cluster to modify resources they should not have access to. This issue affects: Rancher versions prior to 2.5.9 ; Rancher versions prior to 2.4.16.

Other sources

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.. Resource affected include:

Downstream clusters: apiservices clusters clusterrepos persistentvolumes storageclasses

Rancher management cluster apprevisions apps catalogtemplates catalogtemplateversions clusteralertgroups clusteralertrules clustercatalogs clusterloggings clustermonitorgraphs clusterregistrationtokens clusterroletemplatebindings clusterscans etcdbackups nodepools nodes notifiers pipelineexecutions pipelines pipelinesettings podsecuritypolicytemplateprojectbindings projectalertgroups projectalertrules projectcatalogs projectloggings projectmonitorgraphs projectroletemplatebindings projects secrets sourcecodeproviderconfigs

There is not a direct mitigation besides upgrading to the patched Rancher versions.

GitHub

Affected Software

4 affected componentsFixes available
go/github.com/rancher/rancher>=2.5.0<2.5.9
2.5.9
go/github.com/rancher/rancher>=2.0.0<2.4.16
2.4.16
Rancher Rancher<2.4.16
Rancher Rancher>=2.5.0<2.5.9

Event History

Jul 15, 2021
CVE Published
via MITRE·08:55 AM
Data Sourced
via MITRE·08:55 AM
DescriptionSeverityWeakness
Apr 24, 2024
Advisory Published
via GitHub·09:02 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-25318?

The severity of CVE-2021-25318 is classified as high due to the improper permission assignment allowing unauthorized resource modification.

2

How do I fix CVE-2021-25318?

To fix CVE-2021-25318, upgrade to Rancher version 2.5.9 or 2.4.16 or later.

3

What versions of Rancher are affected by CVE-2021-25318?

CVE-2021-25318 affects Rancher versions prior to 2.5.9 and versions prior to 2.4.16.

4

What impact does CVE-2021-25318 have on my resources?

CVE-2021-25318 allows users in the cluster to modify resources they do not have authorization to access.

5

Is there a workaround for CVE-2021-25318?

There is no official workaround for CVE-2021-25318; upgrading to the patched versions is necessary.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203