CVE-2024-0132: Github.com/NVIDIA/nvidia container toolkit NVIDIA Container Toolkit Contains A Vulnerability

CRITICAL
Advisory Identifier: GHSA-mjjw-553x-87pq
CVSS 9.0
CWE-367
Published
Advisory Summary

CVE-2024-0132 is a CRITICAL (CVSS 9.0) nvidia container toolkit contains a vulnerability (CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition) affecting Github.com/NVIDIA/nvidia container toolkit libraries in the Go ecosystem. The issue involves nvidia container toolkit contains a time-of-check time-of-use (toctou) vulnerability. Remediation is available by upgrading affected packages to version 1.16.2.

CVE-2024-0132 at a Glance

CVE Identifier CVE-2024-0132
GHSA Identifier GHSA-mjjw-553x-87pq
Severity CRITICAL
CVSS v3.1 Base Score 9.0
CWE Classification CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Affected Product Github.com/NVIDIA/nvidia container toolkit
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-0132

To remediate this vulnerability, upgrade all affected Github.com/NVIDIA/nvidia container toolkit dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/NVIDIA/nvidia-container-toolkit fixed: 1.16.2
Upgrade github.com/NVIDIA/nvidia-container-toolkit to 1.16.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/NVIDIA/nvidia-container-toolkit

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-0132, inspect your project dependencies for Github.com/NVIDIA/nvidia container toolkit:

inspect dependencies for github.com/NVIDIA/nvidia-container-toolkit

Analyze the terminal output to locate any version of Github.com/NVIDIA/nvidia container toolkit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.16.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition, where the product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. In Github.com/NVIDIA/nvidia container toolkit, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2024-0132 Affected Github.com/NVIDIA/nvidia container toolkit Versions

1 component(s)
Fixed Versions:
1.16.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/NVIDIA/nvidia-container-toolkit
Go
< 1.16.2
1.16.2

References

Frequently Asked Questions

What is CVE-2024-0132?
CVE-2024-0132 is a security vulnerability in Github.com/NVIDIA/nvidia container toolkit involving NVIDIA Container Toolkit contains a Time-of-check Time-of-Use (TOCTOU) vulnerability under CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition.
Which Github.com/NVIDIA/nvidia container toolkit versions are affected?
Affected versions include releases prior to 1.16.2 across affected packages: github.com/NVIDIA/nvidia-container-toolkit.
What version fixes CVE-2024-0132?
Upgrading to 1.16.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/NVIDIA/nvidia-container-toolkit affected?
Yes, github.com/NVIDIA/nvidia-container-toolkit is affected in releases prior to 1.16.2. Upgrade your dependency to 1.16.2 or later.
What is the CVSS score of CVE-2024-0132?
CVE-2024-0132 has a CVSS v3.1 base score of 9.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2024-0132?
CVE-2024-0132 is classified under CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition (The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.).
How can I check Go dependencies for CVE-2024-0132?
Run the dependency tree command: 'inspect dependencies for github.com/NVIDIA/nvidia-container-toolkit'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mjjw-553x-87pq",
  "modified" : "2024-10-29T19:48:12Z",
  "published" : "2024-10-29T19:48:11Z",
  "aliases" : [ "CVE-2024-0132" ],
  "summary" : "NVIDIA Container Toolkit contains a Time-of-check Time-of-Use (TOCTOU) vulnerability",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/NVIDIA/nvidia-container-toolkit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.16.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/NVIDIA/gpu-operator/security/advisories/GHSA-95rf-r6p4-44h7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/NVIDIA/libnvidia-container/security/advisories/GHSA-q2v4-jw5g-9xxj"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/NVIDIA/nvidia-container-toolkit/security/advisories/GHSA-mjjw-553x-87pq"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-0132"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/NVIDIA/nvidia-container-toolkit"
  }, {
    "type" : "WEB",
    "url" : "https://nvidia.custhelp.com/app/answers/detail/a_id/5582"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-367" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-10-29T19:48:11Z",
    "nvd_published_at" : null
  }
}