VAITP Dataset

← Back to the dataset

CVE-2022-42268

USD files in Omniverse Kit allow malicious Python code execution, risking data breaches, tampering, and denial of service

  • CVSS 7.8
  • CWE-94
  • Information Leakage
  • Remote

Omniverse Kit contains a vulnerability in the reference applications Create, Audio2Face, Isaac Sim, View, Code, and Machinima. These applications allow executable Python code to be embedded in Universal Scene Description (USD) files to customize all aspects of a scene. If a user opens a USD file that contains embedded Python code in one of these applications, the embedded Python code automatically runs with the privileges of the user who opened the file. As a result, an unprivileged remote attacker could craft a USD file containing malicious Python code and persuade a local user to open the file, which may lead to information disclosure, data tampering, and denial of service.

CVSS base score
7.8
Published
2023-01-13
OWASP
A08 Software and Data Integrity Failures
Orthogonal defect classification
Function
Code defect classification
Incorrect Functionality
Category
Information Leakage
Subcategory
Information Disclosure
Accessibility scope
Remote
Impact
Arbitrary Code Execution
Affected component
Omniverse Kit
Fixed by upgrading
Yes

Solution

Update Omniverse Kit to a version that fixes the vulnerability.

Vulnerable code sample

import usd

def load_usd(file_path):
    # Load the USD file and execute any embedded Python code
    stage = usd.Stage.Open(file_path)
    
    # Execute embedded Python code in the USD file
    for layer in stage.GetRootLayer().GetSubLayers():
        exec(layer.GetSourceUri())
    
    return stage

# Example usage
try:
    stage = load_usd("path/to/malicious.usd")
except Exception as e:
    print(f"Error loading USD file: {e}")

Patched code sample

import usd

def safe_load_usd(file_path):
    # Load the USD file without executing embedded Python code
    stage = usd.Stage.Open(file_path)
    
    # Disable execution of embedded scripts
    for layer in stage.GetRootLayer().GetSubLayers():
        layer.SetPermission(usd.Layer.Permission.READ_ONLY)
    
    return stage

# Example usage
try:
    safe_stage = safe_load_usd("path/to/malicious.usd")
except Exception as e:
    print(f"Failed to load USD file safely: {e}")

Cite this entry

@misc{vaitp:cve202242268,
  title        = {{USD files in Omniverse Kit allow malicious Python code execution, risking data breaches, tampering, and denial of service}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2023},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2022-42268},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2022-42268/}}
}

Download this entry as JSON Download the whole dataset

Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.

The supreme art of war is to subdue the enemy without fighting.

Sun Tzu – “The Art of War”

:: Shaping the future through research and ingenuity ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.