Skip to content
RCE Write-up Advanced

Wiz Research Finds Critical NVIDIA AI Vulnerability Affecting Containers Using NVIDIA GPUs, Including Over 35% of Cloud Environments

A container-escape vulnerability in the NVIDIA Container Toolkit allowed an attacker who controls a container image to break out of the container and gain full read access to the host filesystem, and then use writable Unix sockets to execute commands as root on the host. This could lead to full host takeover and access to other customers' data in shared GPU environments.

Shir Tamari Follow

Published on wiz.io

Wiz Research has uncovered a critical security vulnerability, CVE-2024-0132, in the widely used NVIDIA Container Toolkit, which provides containerized AI applications with access to GPU resources. This impacts any AI application – in the cloud or on-premise – that is running the vulnerable container toolkit to enable…

Shir Tamari, on wiz.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a flaw in how the NVIDIA Container Toolkit mounts host filesystem paths into containers, allowing a crafted image to mount the entire host filesystem and reach writable Unix sockets.

Impact

An attacker could escape the container and gain full access to the host, potentially accessing other customers' data and secrets in shared environments; the vulnerability does not affect setups using the Container Device Interface (CDI).

What the attacker needed

Control over a container image run by the toolkit; vulnerable NVIDIA Container Toolkit (≤1.16.1); CDI not used

The fix

The vulnerability was fixed in NVIDIA Container Toolkit v1.16.2 and GPU Operator v24.6.2; organisations should upgrade.

How it was found

  1. Craft a malicious container image that exploits the vulnerability.
  2. Run the malicious image on a target platform that uses the vulnerable toolkit.
  3. Exploit the vulnerability to mount the entire host filesystem and gain read access.
  4. Use writable Unix sockets (docker.sock/containerd.sock) to execute arbitrary commands as root on the host.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Containers are meant to keep programs isolated from the rest of the computer, like a box. This bug in a tool that lets containers use graphics cards (GPUs) let a malicious container break out of its box and read all files on the host machine. Because some system sockets stay writable even when mounted read-only, the attacker could then run commands as the administrator, taking over the whole machine.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Shir Tamari

View all

6 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.