CVE-2025-53009: MaterialX Stack Overflow Due to Unbounded XML Parsing Recursion

materialx Updated 14 Dec 2025

Summary

31/07/2025
Yes i
Moderate
5.5

CVE-2025-53009: MaterialX Stack Overflow via Lack of MTLX XML Parsing Recursion Limit. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

MaterialX is an open-source library designed for the creation and exchange of rich material and texture data. It is widely used in graphics applications to facilitate the sharing of material definitions across different rendering engines. The library supports various features, including nested node graphs, which allow for complex material representations. However, its XML parsing logic lacks a maximum recursion depth, making it vulnerable to stack exhaustion when processing deeply nested structures.

Vulnerability Detail

The vulnerability arises from the MaterialX XML parsing logic, which can crash due to stack exhaustion when parsing MTLX files with multiple nested 'nodegraph' implementations. This issue is rooted in the recursive parsing method used for handling nested elements without any imposed depth limit. An attacker can exploit this vulnerability by crafting a malicious MTLX file that contains an excessive number of nested elements, leading to a stack overflow and potentially crashing the application that utilizes the MaterialX library.

How To Fix

Minimum fixed version

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 processing MTLX files with deep nesting of elements until the package is updated. If you must process such files, consider validating the structure of the MTLX files to limit nesting depth.

Conclusion

CVE-2025-53009 highlights a significant vulnerability in the MaterialX library related to XML parsing. By understanding the nature of this vulnerability and following the recommended steps to update the package, users can protect their applications from potential crashes caused by malicious MTLX files.

See every vulnerability recorded for materialx →

Share this vulnerability

FAQ

CVE-2025-53009 is a vulnerability in the MaterialX library that can lead to a stack overflow when parsing MTLX files with excessive nesting.

You can check if your application is affected by using Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to use the Vulert playground without signup.

The primary impact is that an attacker could intentionally crash applications using MaterialX by sending a malicious MTLX file, leading to denial of service.

Yes, a patch is available in version 1.39.3 of the MaterialX package. Updating to this version will resolve the vulnerability.

If immediate updates are not possible, avoid processing deeply nested MTLX files and validate the structure of MTLX files to limit nesting depth.

Related vulnerabilities

Recent vulnerabilities recorded for materialx.

How To Fix

Minimum fixed version

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