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:
stringData field, the cleartext value is embedded in the kubectl.kubernetes.io/last-applied-configuration annotation. This annotation is included in Rancher audit logs within both the request and response bodies, exposing secret material that should be redacted./v3/import/<token>_c-m-xxxx.yaml.
b. Full kubectl apply and curl commands 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:
Please consult the associated MITRE ATT&CK - Technique - Log Enumeration for further information about this category of attack.
This vulnerability is addressed by applying redaction to sensitive information that was leaking.
Patched versions of Rancher include release v2.12.3.
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.
If you have any questions or comments about this advisory:
{
"cwe_ids": [
"CWE-532"
],
"github_reviewed": true,
"github_reviewed_at": "2025-10-24T15:27:13Z",
"nvd_published_at": "2025-10-29T15:15:41Z",
"severity": "MODERATE"
}