CVE-2024-58269

4.3 MEDIUM

📋 TL;DR

Rancher Manager exposes sensitive information including secrets, cluster import URLs, and registration tokens in audit logs accessible to any user with log access. This information disclosure vulnerability affects all Rancher deployments where audit logging is enabled. Attackers with access to these logs can obtain credentials and configuration data.

💻 Affected Systems

Products:
  • Rancher Manager
Versions: All versions prior to 2.8.7, 2.9.2, and 2.10.0
Operating Systems: All platforms running Rancher
Default Config Vulnerable: ⚠️ Yes
Notes: Vulnerability exists when audit logging is enabled, which is a common configuration for compliance and monitoring purposes.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers obtain cluster registration tokens and secret data, enabling them to join malicious nodes to clusters, access sensitive infrastructure, and potentially escalate privileges across the Kubernetes environment.

🟠

Likely Case

Internal users or compromised accounts access sensitive configuration data from audit logs, potentially enabling lateral movement within the environment or data exfiltration.

🟢

If Mitigated

With proper access controls limiting audit log access to trusted administrators only, the impact is reduced to potential insider threats or administrative account compromise.

🌐 Internet-Facing: MEDIUM
🏢 Internal Only: HIGH

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires access to Rancher audit logs, which typically requires some level of system access or compromised credentials.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Rancher 2.8.7, 2.9.2, or 2.10.0

Vendor Advisory: https://github.com/rancher/rancher/security/advisories/GHSA-mw39-9qc2-f7mg

Restart Required: Yes

Instructions:

1. Backup your Rancher configuration and data. 2. Upgrade to Rancher 2.8.7, 2.9.2, or 2.10.0 using your preferred deployment method (Helm, Docker, RKE2). 3. Verify the upgrade completed successfully. 4. Restart Rancher components as required by the upgrade process.

🔧 Temporary Workarounds

Disable Audit Logging

all

Temporarily disable audit logging to prevent sensitive data exposure until patching can be completed.

Modify Rancher deployment configuration to set audit logging to false or remove audit log configuration

Restrict Audit Log Access

all

Implement strict access controls to limit who can view audit logs to only essential administrative personnel.

Configure RBAC policies to restrict audit log access to specific users or roles

🧯 If You Can't Patch

  • Implement strict access controls on audit log storage and viewing interfaces
  • Regularly rotate cluster registration tokens and secrets that may have been exposed

🔍 How to Verify

Check if Vulnerable:

Check Rancher version via UI (Global Settings -> About) or CLI: kubectl get pods -n cattle-system -l app=rancher -o jsonpath='{.items[0].spec.containers[0].image}'

Check Version:

kubectl get pods -n cattle-system -l app=rancher -o jsonpath='{.items[0].spec.containers[0].image}' | grep -o 'rancher/rancher:[^ ]*'

Verify Fix Applied:

Confirm version is 2.8.7, 2.9.2, or 2.10.0 or higher, and verify audit logs no longer contain sensitive data like registration tokens or secrets.

📡 Detection & Monitoring

Log Indicators:

  • Unauthorized access attempts to audit log files or interfaces
  • Suspicious queries for sensitive data in audit logs

Network Indicators:

  • Unusual access patterns to audit log storage locations or APIs

SIEM Query:

source="rancher-audit-logs" AND (event_type="secret_access" OR event_type="token_generation")

🔗 References

📤 Share & Export