{"id":"CVE-2025-53009","aliases":["GHSA-wx6g-fm6f-w822","PYSEC-2026-1609"],"url":"https://o3.security/vulnerability/CVE-2025-53009","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.","published":"2025-08-01T17:57:56.221Z","modified":"2026-08-12T03:51:36.075030865Z","cvss":null,"epss":{"score":0.00597,"percentile":0.45912,"asOf":"2026-08-24"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"materialx","fixedVersion":"1.39.3"}],"fix":{"url":"https://github.com/AcademySoftwareFoundation/MaterialX/pull/2505","label":"AcademySoftwareFoundation/MaterialX#2505"},"references":[{"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":"ADVISORY","url":"https://github.com/AcademySoftwareFoundation/MaterialX/security/advisories/GHSA-wx6g-fm6f-w822"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/53xxx/CVE-2025-53009.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53009"},{"type":"REPORT","url":"https://github.com/AcademySoftwareFoundation/MaterialX/issues/2504"},{"type":"FIX","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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:36.075030865Z"}}