PYSEC-2026-1609

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/materialx/PYSEC-2026-1609.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-1609
Aliases
Published
2026-07-07T16:03:00.026599Z
Modified
2026-07-07T17:47:03.413946389Z
Severity
  • 5.5 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P CVSS Calculator
Summary
MaterialX Stack Overflow via Lack of MTLX XML Parsing Recursion Limit
Details

Summary

When parsing an MTLX file with multiple nested nodegraph implementations, the MaterialX XML parsing logic can potentially crash due to stack exhaustion.

Details

By specification, multiple kinds of elements in MTLX support nesting other elements, such as in the case of nodegraph elements. Parsing these subtrees is implemented via recursion, and since there is no max depth imposed on the XML document, this can lead to a stack overflow when the library parses an MTLX file with an excessively high number of nested elements.

PoC

Please download the recursion_overflow.mtlx file from the following link:

https://github.com/ShielderSec/poc/tree/main/CVE-2025-53009

build/bin/MaterialXView --material recursion_overflow.mtlx

Impact

An attacker could intentionally crash a target program that uses MaterialX by sending a malicious MTLX file.

References

Affected packages

PyPI / materialx

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.39.2
Fixed
1.39.3

Affected versions

1.*
1.39.2

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/materialx/PYSEC-2026-1609.yaml"