Incident report
Ray Distributed Framework CPU Profiler Command Injection RCE
CVE-2023-6019 (published November 16, 2023, disclosed by Protect AI / Bishop Fox) exposed a critical OS command injection flaw in Ray's dashboard CPU profiling endpoint (`cpu_profile`). Unsanitized query parameters (`format` / `native`) were interpolated directly into shell command invocations on the Ray head node without authentication. Any attacker reaching an exposed Ray dashboard achieved immediate remote code execution across the entire GPU training cluster, leading to stolen OpenAI/AWS keys and cryptojacking. Anyscale patched command sanitization in Ray v2.8.1 and emphasized never exposing Ray dashboards publicly.
Incident record
- Reported
- Severity
- Critical
- Vector
- Exposed Infrastructure
- Affected system type
- Distributed AI Training & Serving Clusters
- Reference
CVE-2023-6019- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2023-6019
Defensive lesson
Bind Ray dashboard ports strictly to private authenticated networks and pass profiler arguments as argv arrays without shell interpolation.
Referenced techniques
- Active Scanning: Scan for Exposed AI Infrastructure AML.T0006.002
- Exploit Public-Facing Application AML.T0049
- Command and Scripting Interpreter AML.T0050
- Compromise Infrastructure AML.T0128
- Misconfigured or Publicly Exposed AI Services AML.T0132