{"id":"CVE-2025-53010","aliases":["CVE-2025-53010","GHSA-3jhf-gxhr-q4cx","PYSEC-2026-1606"],"related":[],"kind":"vulnerability","state":"published","title":"MaterialX's unchecked nodeGraph->getOutput return is vulnerable to NULL Pointer Dereference","summary":"MaterialX is an open standard for the exchange of rich material and look-development content across applications and renderers. In version 1.39.2, when parsing shader nodes in a MTLX file, the MaterialXCore code accesses a potentially null pointer, which can lead to crashes with maliciously crafted files. An attacker could intentionally crash a target program that uses OpenEXR by sending a malicious MTLX file. This is fixed in version 1.39.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"MaterialX is an open standard for the exchange of rich material and look-development content across applications and renderers. In version 1.39.2, when parsing shader nodes in a MTLX file, the MaterialXCore code accesses a potentially null pointer, which can lead to crashes with maliciously crafted files. An attacker could intentionally crash a target program that uses OpenEXR by sending a malicious MTLX file. This is fixed in version 1.39.3.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nWhen parsing shader nodes in a MTLX file, the MaterialXCore code accesses a potentially null pointer, which can lead to crashes with maliciously crafted files.\n\n### Details\n\nIn `src/MaterialXCore/Material.cpp`, in function `getShaderNodes`, the following code fetches the output nodes for a given `nodegraph` input node:\n\n```cpp\n// SNIP...\n        else if (input->hasNodeGraphString())\n        {\n            // Check upstream nodegraph connected to the input.\n            // If no explicit output name given then scan all outputs on the nodegraph.\n            ElementPtr parent = materialNode->getParent();\n            NodeGraphPtr nodeGraph = parent->getChildOfType<NodeGraph>(input->getNodeGraphString());\n            if (!nodeGraph)\n            {\n                continue;\n            }\n            vector<OutputPtr> outputs;\n            if (input->hasOutputString())\n            {\n                outputs.push_back(nodeGraph->getOutput(input->getOutputString())); // <--- null ptr is returned\n            }\n            else\n            {\n                outputs = nodeGraph->getOutputs();\n            }\n            for (OutputPtr output : outputs)\n            {\n                NodePtr upstreamNode = output->getConnectedNode(); // <--- CRASHES HERE\n                if (upstreamNode && !shaderNodeSet.count(upstreamNode))\n                {\n                    if (!target.empty() && !upstreamNode->getNodeDef(target))\n                    {\n                        continue;\n                    }\n                    shaderNodeVec.push_back(upstreamNode);\n                    shaderNodeSet.insert(upstreamNode);\n                }\n            }\n        }\n    }\n// SNIP...\n```\n\nThe issues arise because the `nodeGraph->getOutput(input->getOutputString())` call can return a null pointer, therefore when trying to call `output->getConnectedNode()`, this results in a crash    .\n\n\n### PoC\n\nPlease download `nullptr_getshadernodes.mltx` from the following link:\n\nhttps://github.com/ShielderSec/poc/tree/main/CVE-2025-53010\n\n`build/bin/MaterialXView --material nullptr_getshadernodes.mtlx`\n\n\n### Impact\n\nAn attacker could intentionally crash a target program that uses OpenEXR by sending a malicious MTLX file.","format":"markdown","source":"ghsa"},{"lang":"es","text":"MaterialX es un estándar abierto para el intercambio de contenido de desarrollo visual y de materiales enriquecidos entre aplicaciones y renderizadores. En la versión 1.39.2, al analizar nodos de sombreado en un archivo MTLX, el código de MaterialXCore accede a un puntero potencialmente nulo, lo que puede provocar fallos con archivos maliciosos. Un atacante podría bloquear intencionalmente un programa objetivo que use OpenEXR enviando un archivo MTLX malicioso. Esto se solucionó en la versión 1.39.3.","source":"nvd"}],"published":"2025-07-31T18:31:11.000Z","modified":"2026-07-07T17:56:48.902Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P","score":2,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P","score":2,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"version":">= 1.39.2, < 1.39.3","status":"affected"}],"vendor":"AcademySoftwareFoundation","product":"MaterialX","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.39.2","status":"affected","fixed":"1.39.3"}],"ecosystem":"PyPI","package":"materialx","purl":"pkg:pypi/materialx","source":"ghsa"},{"ranges":[{"status":"affected","version":"1.39.2"}],"vendor":"linuxfoundation","product":"materialx","cpe":"cpe:2.3:a:linuxfoundation:materialx:1.39.2:-:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"1.39.2","status":"affected","fixed":"1.39.3"}],"ecosystem":"PyPI","package":"materialx","purl":"pkg:pypi/materialx","source":"pysec"}],"references":[{"url":"https://github.com/AcademySoftwareFoundation/MaterialX/security/advisories/GHSA-3jhf-gxhr-q4cx","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/AcademySoftwareFoundation/MaterialX/commit/e13344ba13326869d7820b444705f24d56fab73d","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/ShielderSec/poc/tree/main/CVE-2025-53010","tags":["exploit","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53010","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/AcademySoftwareFoundation/MaterialX","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/materialx","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-3jhf-gxhr-q4cx","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-08-01T18:19:23.867Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-53010","url":"https://www.cve.org/CVERecord?id=CVE-2025-53010","licence":"CVE Terms of Use","modified":"2025-08-01T18:19:33.225Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3jhf-gxhr-q4cx","url":"https://github.com/advisories/GHSA-3jhf-gxhr-q4cx","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:48.902Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-53010","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53010","licence":"Public domain","modified":"2026-06-17T09:37:28.280Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1606","url":"https://osv.dev/vulnerability/PYSEC-2026-1606","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:15.445Z"}],"updatedAt":"2026-11-25T22:59:01.973Z","epss":{"score":0.0055,"percentile":0.47424,"date":"2026-12-02T12:00:21.000Z"}}