{"id":"PYSEC-2026-1609","summary":"MaterialX Stack Overflow via Lack of MTLX XML Parsing Recursion Limit ","details":"### Summary\n\nWhen parsing an MTLX file with multiple nested `nodegraph` implementations, the MaterialX XML parsing logic can potentially crash due to stack exhaustion.\n\n### Details\n\nBy 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.\n\n### PoC\n\nPlease download the `recursion_overflow.mtlx` file from the following link: \n\nhttps://github.com/ShielderSec/poc/tree/main/CVE-2025-53009\n\n`build/bin/MaterialXView --material recursion_overflow.mtlx`\n\n\n### Impact\nAn attacker could intentionally crash a target program that uses MaterialX by sending a malicious MTLX file.","aliases":["CVE-2025-53009","GHSA-wx6g-fm6f-w822"],"modified":"2026-07-07T17:47:03.413946389Z","published":"2026-07-07T16:03:00.026599Z","references":[{"type":"WEB","url":"https://github.com/AcademySoftwareFoundation/MaterialX/security/advisories/GHSA-wx6g-fm6f-w822"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53009"},{"type":"WEB","url":"https://github.com/AcademySoftwareFoundation/MaterialX/issues/2504"},{"type":"WEB","url":"https://github.com/AcademySoftwareFoundation/MaterialX/pull/2505"},{"type":"WEB","url":"https://github.com/AcademySoftwareFoundation/MaterialX/commit/91ffea0de7bfe7bcd0c399b07f04fc48227055ff"},{"type":"PACKAGE","url":"https://github.com/AcademySoftwareFoundation/MaterialX"},{"type":"WEB","url":"https://github.com/AcademySoftwareFoundation/MaterialX/releases/tag/v1.39.3"},{"type":"WEB","url":"https://github.com/ShielderSec/poc/tree/main/CVE-2025-53009"},{"type":"PACKAGE","url":"https://pypi.org/project/materialx"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-wx6g-fm6f-w822"}],"affected":[{"package":{"name":"materialx","ecosystem":"PyPI","purl":"pkg:pypi/materialx"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.39.2"},{"fixed":"1.39.3"}]}],"versions":["1.39.2"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/materialx/PYSEC-2026-1609.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}