9.9critical
Rancher: Failure to properly sanitize credentials in cluster template answers
- Severity
- 9.9critical CVSS:3.1 by suse
- Exploit likelihood
- 0.82% (higher than 58% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- suse
- Also known as
- GHSA-8w87-58w6-hfv8
Description
A Insufficiently Protected Credentials vulnerability in SUSE Rancher allows authenticated Cluster Owners, Cluster Members, Project Owners and Project Members to read credentials, passwords and API tokens that have been stored in cleartext and exposed via API endpoints. This issue affects: SUSE Rancher Rancher versions prior to 2.6.4; Rancher versions prior to 2.5.13.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| SUSE Rancher | from Rancher before 2.6.4, from Rancher before 2.5.13, from 2.5.0 before 2.5.13, from 2.6.0 before 2.6.4 | CVE List, NVD |
| github.com/rancher/rancher (Go) | from 2.5.0 before 2.5.13, from 2.6.0 before 2.6.4 | GitHub Advisory Database |
All scores
| suse | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Classification
What each source says
CVE List
A Insufficiently Protected Credentials vulnerability in SUSE Rancher allows authenticated Cluster Owners, Cluster Members, Project Owners and Project Members to read credentials, passwords and API tokens that have been stored in cleartext and exposed via API endpoints. This issue affects: SUSE Rancher Rancher versions prior to 2.6.4; Rancher versions prior to 2.5.13.
GitHub Advisory Database
Impact
It was discovered that in Rancher versions up to and including 2.5.12 and 2.6.3 there is a failure to properly sanitize credentials in cluster template answers. This failure can lead to plaintext storage and exposure of credentials, passwords and API tokens.
The exposed credentials are visible in Rancher to authenticated Cluster Owners, Cluster Members, Project Owners and Project Members on the endpoints /v1/management.cattle.io.clusters, /v3/clusters and /k8s/clusters/local/apis/management.cattle.io/v3/clusters.
Sensitive fields are now stripped from Clusters objects before the object is stored. For objects that existed before this security fix, a one-time migration happens on startup.
Important:
- It is highly advised to review for potential leaked credentials in this scenario, and to change them if deemed necessary.
- The final impact severity for confidentiality, integrity and availability is dependent on the permissions that the leaked credentials have on their own services.
Patches
Patched versions include releases 2.5.13, 2.6.4 and later versions.
Workarounds
Limit access in Rancher to trusted users. There is not a direct mitigation besides upgrading to the patched Rancher versions.
Important: It is highly advised to review for potential leaked credentials in this scenario, and to change them if deemed necessary.
For more information
If you have any questions or comments about this advisory:
- Reach out to SUSE Rancher Security team for security related inquiries.
- Open an issue in Rancher repository.
- Verify our support matrix and product support lifecycle.
NVD (es)
Una vulnerabilidad de credenciales insuficientemente protegidas en SUSE Rancher permite a los propietarios de clústeres, miembros de clústeres, propietarios de proyectos y miembros de proyectos autenticados leer credenciales, contraseñas y tokens de API que se han almacenado en texto claro y se han expuesto a través de puntos finales de API. Este problema afecta a: Las versiones de SUSE Rancher anteriores a la 2.6.4; las versiones de Rancher anteriores a la 2.5.13
References
| https://bugzilla.suse.com/show_bug.cgi?id=1193990 | issue-tracking, vendor-advisory, web | |
| https://github.com/rancher/rancher/security/advisories/GHSA-8w87-58w6-hfv8 | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-36783 | advisory | |
| https://github.com/rancher/rancher | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-36783 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8w87-58w6-hfv8 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-36783 changed 2026-06-17 | Public domain |