(Pwn2Own) NVIDIA Container Toolkit Environment Variable Handling Local Privilege Escalation Vulnerability
The NVIDIA Container Toolkit did not restrict environment variables before spawning a hook process, allowing a local attacker with low-privileged code execution to escalate privileges and run arbitrary code on the host system.
Originally disclosed on Zero Day Initiative
This vulnerability allows local attackers to escalate privileges on affected installations of NVIDIA Container Toolkit. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the container runtime hook process inherited or trusted environment variables from the container without sanitisation, allowing an attacker to inject malicious values that led to code execution on the host.
Impact
An attacker with low-privileged code execution could escalate privileges and execute arbitrary code on the host system.
What the attacker needed
Low-privileged code execution on target
The fix
NVIDIA issued an update to correct this vulnerability.
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 report has not been written yet. The Original tab links to the source.
This is a local privilege escalation bug in a tool that helps run containers. A container is an isolated environment, but if an attacker can already run some code inside it, they could abuse how the tool handles environment variables to break out and run commands on the host machine with higher privileges.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.