CVE-2025-53012: MaterialX Stack Exhaustion Vulnerability Due to Lack of Import Depth Limit

materialx Updated 14 Dec 2025

Summary

31/07/2025
Yes i
Moderate
5.5

CVE-2025-53012: MaterialX Lack of MTLX Import Depth Limit Leads to DoS (Denial-Of-Service) Via Stack Exhaustion. Affects materialx versions >= 1.39.2, < 1.39.3. Fixed in 1.39.3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

MaterialX is an open-source library designed for the interchange of 3D graphics data, allowing users to define and share materials across different rendering engines. It supports complex material definitions and nested imports through XInclude tags, enabling a flexible and powerful way to manage material assets. However, this flexibility also introduces vulnerabilities, particularly when it comes to handling deeply nested imports.

Vulnerability Detail

The vulnerability arises from the absence of a limit on the depth of nested imports in MaterialX files. When parsing these files, the library uses recursion to process imports, which can lead to stack memory exhaustion if an attacker creates a sufficiently deep chain of imports. This can cause applications using the MaterialX library to crash, resulting in a Denial of Service (DoS). The vulnerability is particularly concerning in Windows environments, where attackers can exploit it by controlling the content of a single .mtlx file that references remote paths via UNC notation.

How To Fix

Latest published version: 1.39.5 as of 23 Oct 2026

pip install --upgrade "materialx==1.39.5"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.39.3

This is the first release that contains the fix.

pip install --upgrade "materialx==1.39.3"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid using deeply nested imports in MaterialX files. Limit the number of imports and ensure that the structure of your MaterialX files does not create excessively deep chains.

Conclusion

The CVE-2025-53012 vulnerability in the MaterialX library poses a significant risk due to the lack of limits on nested imports, leading to potential stack exhaustion and application crashes. Users are advised to update to the latest version to mitigate this risk and consider using Vulert for ongoing monitoring of vulnerabilities.

See every vulnerability recorded for materialx →

Share this vulnerability

FAQ

CVE-2025-53012 is a vulnerability in the MaterialX library that allows for stack exhaustion due to unlimited nested imports in MaterialX files.

Exploiting this vulnerability can lead to application crashes and Denial of Service, particularly if an attacker can control the content of MaterialX files.

Versions prior to 1.39.3 are affected by this vulnerability. It is recommended to upgrade to version 1.39.3 or later.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.

If an immediate upgrade is not possible, limit the use of nested imports in your MaterialX files as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for materialx.

How To Fix

Latest published version: 1.39.5 as of 23 Oct 2026

pip install --upgrade "materialx==1.39.5"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.39.3

This is the first release that contains the fix.

pip install --upgrade "materialx==1.39.3"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback