CVE-2023-32196

6.6 MEDIUM

📋 TL;DR

This vulnerability allows attackers to escalate privileges in Rancher when RoleTemplate objects have external=true. Attackers could gain higher permissions than intended, potentially compromising the entire Rancher management platform. Organizations using Rancher with external RoleTemplates are affected.

💻 Affected Systems

Products:
  • Rancher
Versions: Rancher versions 2.6.0 through 2.6.13, 2.7.0 through 2.7.8
Operating Systems: All platforms running Rancher
Default Config Vulnerable: ✅ No
Notes: Only affects configurations where RoleTemplate objects are created or modified with external=true parameter. Standard deployments without custom external RoleTemplates are not vulnerable.

⚠️ 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

Complete compromise of Rancher management plane, allowing attackers to create administrative accounts, access all managed clusters, and deploy malicious workloads across the entire Kubernetes environment.

🟠

Likely Case

Privilege escalation within Rancher leading to unauthorized access to sensitive resources, cluster configurations, or the ability to deploy workloads in managed Kubernetes clusters.

🟢

If Mitigated

Limited impact with proper network segmentation, minimal user permissions, and monitoring in place, though privilege escalation paths would still exist.

🌐 Internet-Facing: MEDIUM - Rancher management interfaces exposed to internet could be targeted, but exploitation requires authenticated access to Rancher.
🏢 Internal Only: HIGH - Internal attackers or compromised accounts could exploit this to gain elevated privileges and move laterally through the environment.

🎯 Exploit Status

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

Exploitation requires authenticated access to Rancher and knowledge of how to create/modify RoleTemplate objects with external=true. No public exploit code has been released.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Rancher 2.6.14, 2.7.9, or later

Vendor Advisory: https://github.com/rancher/rancher/security/advisories/GHSA-64jq-m7rq-768h

Restart Required: Yes

Instructions:

1. Backup Rancher configuration and data. 2. Upgrade Rancher to version 2.6.14 or 2.7.9+. 3. Restart Rancher services. 4. Verify upgrade completed successfully.

🔧 Temporary Workarounds

Disable external RoleTemplate creation

linux

Restrict creation of RoleTemplate objects with external=true parameter through RBAC policies or admission controllers

kubectl apply -f roletemplate-restriction.yaml

Audit existing RoleTemplates

linux

Review and remove any RoleTemplate objects with external=true that are not strictly required

kubectl get roletemplates -A -o json | jq '.items[] | select(.spec.external==true)'

🧯 If You Can't Patch

  • Implement strict RBAC controls to limit who can create or modify RoleTemplate objects
  • Enable audit logging for all RoleTemplate operations and monitor for suspicious activity

🔍 How to Verify

Check if Vulnerable:

Check Rancher version: 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 -E '2.6.1[4-9]|2.7.[9-9]|2.[8-9]'

Verify Fix Applied:

Confirm Rancher version is 2.6.14+ or 2.7.9+ and check that RoleTemplate privilege escalation attempts are properly blocked

📡 Detection & Monitoring

Log Indicators:

  • Unauthorized RoleTemplate creation/modification with external=true
  • Privilege escalation attempts in Rancher audit logs
  • Unexpected permission changes for users

Network Indicators:

  • Unusual API calls to Rancher management interface related to RoleTemplate objects

SIEM Query:

source="rancher-audit" AND (event="create" OR event="update") AND object="roletemplate" AND external="true"

🔗 References

📤 Share & Export