NVIDIA Container Toolkit Flaw Enables Root-Level Container Escape

· Original article ↗

Summary

Wiz researchers detail CVE-2025-23266, a critical NVIDIA Container Toolkit flaw that lets a malicious container escape to host root through an OCI hook. Affected versions include NCT through 1.17.7; NVIDIA recommends upgrading or disabling the hook.

Key points

  • Wiz Research disclosed CVE-2025-23266, rated CVSS 9.0, in the NVIDIA Container Toolkit; the researchers say it can let a malicious container gain root access to the host.
  • The flaw affects NVIDIA Container Toolkit versions through 1.17.7 and NVIDIA GPU Operator versions through 25.3.1; versions before NCT 1.17.5 are affected in CDI mode only.
  • The exploit abuses a createContainer OCI hook that runs as a privileged host process and inherits environment variables from the container image.
  • Setting LD_PRELOAD in the image can make the hook load an attacker-controlled shared library from the container filesystem, enabling escape with a simple Dockerfile.
  • The researchers warn that shared GPU infrastructure could expose other customers’ data or models if a malicious container escapes; this is a potential impact, not a reported breach.
  • NVIDIA recommends upgrading. As a temporary mitigation, administrators can disable the enable-cuda-compat hook; GPU Operator users on versions before 25.3.1 can deploy NCT 1.17.8.
  • Wiz advises prioritizing hosts that run untrusted or public images; internet exposure is not required for exploitation.

Article Details

Attack Vectors
  • A malicious container image sets LD_PRELOAD to /proc/self/cwd/poc.so and includes poc.so; the NVIDIA Container Toolkit's privileged createContainer hook inherits the variable and loads the library from the container filesystem, enabling escape to host root.
  • Potential initial access paths mentioned include social engineering against developers, supply-chain access to a container image repository, and environments that allow users to load arbitrary images.
Defensive Notes
  • Upgrade the NVIDIA Container Toolkit to the latest version; versions up to and including 1.17.7 are affected. NVIDIA GPU Operator versions up to and including 25.3.1 are also affected.
  • Prioritize patching hosts likely to run untrusted or public container images, and use runtime validation to identify instances actively using the vulnerable toolkit.
  • Internet exposure is not required for exploitation and is not a relevant prioritization factor.
  • Where immediate upgrading is not possible, disable the enable-cuda-compat hook using disable-cuda-compat-lib-hook.
  • Use a strong isolation barrier such as virtualization in multi-tenant environments; do not rely on containers as the sole isolation boundary.

MITRE ATT&CK

CVE

People

Vendors

Products

Tools

Related Articles