CVE-2018-20321: Exposure of Resource to Wrong Sphere
An issue was discovered in Rancher 2 through 2.1.5. Any project member with access to the default namespace can mount the netes-default service account in a pod, and then use that pod to execute administrative privileged commands against the k8s cluster. This could be mitigated by isolating the default namespace in a separate project, where only cluster admins can be given permissions to access. As of 2018-12-20, this bug affected ALL clusters created or imported by Rancher.
References
- forums.rancher.com/c/announcements
- github.com/advisories/GHSA-9qq2-xhmc-h9qr
- github.com/rancher/rancher/commit/6ea187fcc2309d5a7a14ed47de5688bf6573f448
- github.com/rancher/rancher/releases/tag/v2.1.6
- nvd.nist.gov/vuln/detail/CVE-2018-20321
- rancher.com/blog/2019/2019-01-29-explaining-security-vulnerabilities-addressed-in-rancher-v2-1-6-and-v2-0-11/
Detect and mitigate CVE-2018-20321 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 →