
Nvidia AIStore CVSS 10.0: Container Escape and Host Takeover
Classification: Orchestrated Spec-Passthrough (OSP): blind deserialization of a user-supplied Kubernetes PodSpec forwarded to the cluster API
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
Classification: Orchestrated Spec-Passthrough (OSP): blind deserialization of a user-supplied Kubernetes PodSpec forwarded to the cluster API
Vendor advisory: NVIDIA Security Bulletin 5889 (published 2026-10-13; AIStore v5.0 architectural fix)
Credit: Mohamed Lemine Ahmed Jidou (AegisSec)
Author: Mohamed Lemine Ahmed Jidou (AegisSec) Target: NVIDIA AIStore (AIS) CVE: CVE-2026-65162 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H) Date: October 15, 2026
-
The Flaw: NVIDIA AIStore's ETL API (PUT /v1/etl) blindly deserialized user-supplied Kubernetes PodSpecs and forwarded them to the K8s API without stripping SecurityContext attributes.
-
The Bypass: The application's Validate() function enforced operational constraints (readiness probes, ports) but completely ignored security boundaries, allowing privileged: true and hostPID: true.
-
The Impact: A remote attacker could schedule a fully privileged pod on the storage node, execute a nsenter container escape, and achieve root RCE on the underlying host (Cluster Takeover).
-
The Fix (The Plot Twist): Instead of implementing the recommended allowlists, NVIDIA realized the architectural anti-pattern and surgically deleted the entire InitSpecMsg feature from the codebase in v5.0.
-
The Class: We define this vulnerability class as Orchestrated Spec-Passthrough (OSP): when an application acts as a blind conduit for infrastructure-level execution specs.
In modern Cloud-Native architectures, applications often wrap infrastructure orchestration. AIStore (AIS), an open-source object storage system by NVIDIA, features a powerful ETL (Extract, Transform, Load) engine that allows users to run custom data transformations directly on the storage nodes via Kubernetes Pods.
To facilitate this, AIS exposed an HTTP endpoint (PUT /v1/etl) accepting an InitSpecMsg. This message contained a base64-encoded Kubernetes PodSpec. The application would decode this spec, validate it, attach internal storage volumes, and submit it to the Kubernetes API.
During a security audit of the AIS codebase, I discovered that this pipeline suffered from Orchestrated Spec-Passthrough (OSP). The application treated the PodSpec as a black box, validating only what it needed for its own data-plane operations, while silently forwarding root-level host privileges to the Kubernetes scheduler.
Every claim in this research is anchored to verifiable code artifacts from commit 64421686c (pre-fix).
The vulnerability is not a simple misconfiguration; it is a systemic failure across the ETL lifecycle.
When a user submits a payload to PUT /v1/etl, the API routes it to the ETL handler. The base64 spec field is decoded using the standard Kubernetes client-go library:
AIStore implements a Validate() method. A cursory glance might suggest the application is secure. However, inspecting the logic reveals it is strictly operational, not security-oriented:
By satisfying the ReadinessProbe requirement, an attacker easily bypasses the validator, while smuggling hostPID: true and privileged: true in the same payload.
Before submitting the Pod to Kubernetes, AIS modifies the spec to inject its own internal storage volumes (PVCs). This happens in ext/etl/boot.go:
The modified pod object is then handed directly to the Kubernetes API client. The AIS ServiceAccount (which inherently requires create pods RBAC to function) unknowingly commands the K8s scheduler to spawn a root-level container on the host.
To eliminate environmental variables (like cluster PSA configurations) during the disclosure process, I developed a Code-Level In-Memory PoC using AIStore's own ext/etl package.
The payload is crafted to satisfy Validate() while maximizing host privileges:
Running the PoC against the AIS ext/etl logic yields:
[+] VULNERABILITY CONFIRMED: Malicious payload successfully bypassed msg.Validate() [!] MEMORY DUMP BEFORE KUBERNETES SUBMISSION: -> HostPID Set: true -> Privileged Set: true
The Impact: Container Escape
Once the Kubernetes scheduler places this pod on an AIS storage node, the hostPID: true and privileged: true flags collapse the container boundary. The attacker uses nsenter to target PID 1 (the host's init system), gaining an immediate root shell on the underlying Linux node. From here, the attacker can access raw storage disks, pivot to other nodes, or install persistent rootkits.
When reporting this to NVIDIA PSIRT, my recommended mitigations included:
-
Hardcoding HostPID = false, HostNetwork = false.
-
Stripping SecurityContext from user containers.
-
Implementing a strict Allowlist for PodSpec fields.
However, analyzing the diff between the vulnerable commit (64421686c) and the patched release (v5.0 / origin/main), NVIDIA engineers recognized a deeper truth: Allowing untrusted users to submit raw Kubernetes execution specs via an HTTP API is an unmitigatable anti-pattern.
Instead of writing complex sanitization logic, NVIDIA deleted the feature entirely from the open-source build:
- func (m *InitSpecMsg) Validate() error { ... }
In UnmarshalInitMsg, the fallback to InitSpecMsg was removed. The application now strictly enforces ETLSpecMsg (which relies on pre-built Docker images and does not accept raw PodSpecs). Furthermore, the ETL runtime functions in boot.go were stubbed out with return ErrNotBuilt.
Conclusion: The vulnerability was not a bug in the code; it was a flaw in the design. The only secure way to fix OSP was to remove the conduit.
For defenders managing AIStore clusters , standard K8s Audit Logging can detect this exploitation attempt. Look for the AIS ServiceAccount creating pods with anomalous security contexts.
Detect AIS ServiceAccount creating privileged pods
- rule: "AIS ETL Privileged Pod Creation" condition: > verb="create" and objectRef.resource="pods" and user.username="system:serviceaccount:ais:ais-service-account" and requestObject.spec.containers[*].securityContext.privileged=true
-
2026-07-06: Initial discovery and In-Memory PoC developed. Report submitted to NVIDIA PSIRT.
-
2026-07-12: NVIDIA PSIRT acknowledges receipt and reproduces the Code-Level PoC.
-
2026-10-13: NVIDIA publishes Security Bulletin 5889, releasing AIStore v5.0 with the architectural fix.
-
2026-10-15: Public disclosure of this research.
Acknowledgments: I extend my gratitude to the NVIDIA PSIRT team for their professionalism, rapid validation of the in-memory PoC, and decisive architectural remediation.
Vendor acknowledgment: NVIDIA PSIRT acknowledged receipt (2026-07-12) and reproduced the code-level PoC; the InitSpecMsg feature was deleted in AIStore v5.0.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。