4.3medium
Rancher exposes sensitive information through audit logs
- Severity
- 4.3medium CVSS:3.1 by suse
- Exploit likelihood
- 0.30% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- suse
- Also known as
- GHSA-mw39-9qc2-f7mgGO-2025-4074
Description
A vulnerability has been identified in Rancher Manager, where sensitive information, including secret data, cluster import URLs, and registration tokens, is exposed to any entity with access to Rancher audit logs.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/rancher/rancher | before 0.0.0-20251013203444-50dc516a19ea | CVE List |
| github.com/rancher/rancher (Go) | before 0.0.0-20251013203444-50dc516a19ea | GitHub Advisory Database, Go Vulnerability Database |
All scores
| suse | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
A vulnerability has been identified in Rancher Manager, where sensitive information, including secret data, cluster import URLs, and registration tokens, is exposed to any entity with access to Rancher audit logs.
GitHub Advisory Database
Impact
Note: The exploitation of this issue requires that the malicious user have access to Rancher’s audit log storage.
A vulnerability has been identified in Rancher Manager, where sensitive information, including secret data, cluster import URLs, and registration tokens, is exposed to any entity with access to Rancher audit logs. This happens in two different ways:
- Secret Annotation Leakage: When creating Kubernetes Secrets using the
stringDatafield, the cleartext value is embedded in thekubectl.kubernetes.io/last-applied-configurationannotation. This annotation is included in Rancher audit logs within both the request and response bodies, exposing secret material that should be redacted. - Cluster Registration Token Leakage: During the import or creation of downstream clusters (Custom, Imported, or Harvester), Rancher audit logs record full cluster registration manifests and tokens, including:
a. Non-expiring import URLs such as
/v3/import/<token>_c-m-xxxx.yaml. b. Fullkubectl applyandcurlcommands containing registration tokens and CA checksums. c. Token values associated with cluster registration resources (clusterRegistrationToken). d. These tokens are valid until explicitly revoked and can be used to re-register nodes, granting unauthorized cluster access.
An attacker or internal user who gains access to these logs could:
- Recover plaintext secret values from annotations.
- Use cluster registration tokens or import URLs to re-enroll agents or compromise downstream clusters.
- Access clusters that rely on these tokens for authentication, enabling lateral movement.
Please consult the associated MITRE ATT&CK - Technique - Log Enumeration for further information about this category of attack.
Patches
This vulnerability is addressed by applying redaction to sensitive information that was leaking.
Patched versions of Rancher include release v2.12.3.
Workarounds
If the deployment can't be upgraded to a fixed version, users are encouraged to create AuditPolicies to redact and filter some of those requests as described in our documentation.
The following AuditPolicy can be applied to redact the secrets:
apiVersion: auditlog.cattle.io/v1
kind: AuditPolicy
metadata:
name: redactions
spec:
enabled: true
additionalRedactions:
- headers:
- "Referer"
- paths:
- "$..metadata.annotations['kubectl.kubernetes.io/last-applied-configuration']"
Also consider granting access to Rancher's logs only for trusted users.
References
If you have any questions or comments about this advisory:
- Reach out to the SUSE Rancher Security team for security related inquiries.
- Open an issue in the Rancher repository.
- Verify with our support matrix and product support lifecycle.
Go Vulnerability Database
Rancher exposes sensitive information through audit logs in github.com/rancher/rancher
NVD (es)
Una vulnerabilidad ha sido identificada en Rancher Manager, donde información sensible, incluyendo datos secretos, URL de importación de clústeres y tokens de registro, está expuesta a cualquier entidad con acceso a los registros de auditoría de Rancher.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-58269 changed 2025-10-29 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mw39-9qc2-f7mg changed 2025-11-05 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-4074 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2024-58269 changed 2026-10-02 | Public domain |