CVE-2022-1708

7.5 HIGH

📋 TL;DR

This vulnerability in CRI-O allows attackers with Kube API access to cause memory or disk space exhaustion on Kubernetes nodes by executing commands that generate large output. The issue occurs when CRI-O reads the entire command output file at once, potentially crashing or degrading node performance. This affects Kubernetes clusters using vulnerable CRI-O versions.

💻 Affected Systems

Products:
  • CRI-O
Versions: All versions before 1.24.2, 1.23.6, 1.22.9, and 1.21.12
Operating Systems: Linux
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects Kubernetes clusters using CRI-O as container runtime. Requires attacker access to Kube API with permissions to execute commands in containers.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete node failure due to memory/disk exhaustion, causing container orchestration disruption and potential cluster-wide availability issues.

🟠

Likely Case

Degraded node performance, container failures, and potential denial of service affecting workloads on vulnerable nodes.

🟢

If Mitigated

Minimal impact with proper access controls limiting Kube API access and monitoring for abnormal command execution.

🌐 Internet-Facing: MEDIUM - Requires Kube API access which may be exposed, but exploitation needs specific permissions.
🏢 Internal Only: HIGH - Internal attackers with Kube API access can easily exploit this to disrupt cluster operations.

🎯 Exploit Status

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

Exploitation requires authenticated access to Kube API with exec permissions. Simple to execute once access is obtained.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: CRI-O 1.24.2, 1.23.6, 1.22.9, or 1.21.12

Vendor Advisory: https://github.com/cri-o/cri-o/security/advisories/GHSA-fcm2-6c3h-pg6j

Restart Required: Yes

Instructions:

1. Identify CRI-O version. 2. Update to patched version via package manager. 3. Restart CRI-O service. 4. Verify nodes are running patched version.

🔧 Temporary Workarounds

Restrict Kube API Access

linux

Limit access to Kube API endpoints and implement RBAC to prevent unauthorized command execution.

kubectl apply -f rbac-restrictions.yaml

Monitor ExecSync Usage

linux

Implement monitoring for ExecSync API calls and alert on abnormal command execution patterns.

kubectl get events --field-selector involvedObject.kind=Pod,reason=Exec

🧯 If You Can't Patch

  • Implement strict RBAC controls to limit who can execute commands in containers
  • Deploy resource limits and monitoring to detect memory/disk exhaustion attempts

🔍 How to Verify

Check if Vulnerable:

Check CRI-O version: crio --version or kubectl get nodes -o wide to see container runtime

Check Version:

crio --version | grep Version

Verify Fix Applied:

Verify CRI-O version is 1.24.2+, 1.23.6+, 1.22.9+, or 1.21.12+

📡 Detection & Monitoring

Log Indicators:

  • Large memory allocation failures in CRI-O logs
  • Disk space warnings
  • Abnormal ExecSync API call frequency

Network Indicators:

  • Unusual volume of exec API requests to Kube API server

SIEM Query:

source="crio" AND ("memory exhausted" OR "disk full" OR "ExecSync")

🔗 References

📤 Share & Export