CVE-2025-53011: MaterialX MaterialX Null Pointer Dereference Vulnerability
LOWCVE-2025-53011 is a LOW materialx null pointer dereference vulnerability (CWE-476: NULL Pointer Dereference) affecting MaterialX libraries in the PyPI ecosystem. The issue involves materialx null pointer dereference in materialxcore shader generation due to unchecked implgraphoutput. Remediation is available by upgrading affected packages to version 1.39.3.
CVE-2025-53011 at a Glance
How to Fix CVE-2025-53011
To remediate this vulnerability, upgrade all affected MaterialX dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install MaterialX>=1.39.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show MaterialX
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-53011, inspect your installed packages using pip:
pip show MaterialX
Analyze the terminal output to locate any version of MaterialX in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.39.3), your application is affected.
Note: The pip show MaterialX command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-476: NULL Pointer Dereference, where the product dereferences a pointer that it expects to be valid but is null. In MaterialX, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-53011 Affected MaterialX Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
MaterialX
|
PyPI |
≥ 1.39.2
< 1.39.3
All 1 versions
1.39.2
|
1.39.3
|
References
Frequently Asked Questions
What is CVE-2025-53011?
Which MaterialX versions are affected?
What version fixes CVE-2025-53011?
Is MaterialX affected?
What CWE is associated with CVE-2025-53011?
How can I check PyPI dependencies for CVE-2025-53011?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7qw8-3vmf-gj32",
"modified" : "2025-08-01T18:36:10Z",
"published" : "2025-07-31T18:31:23Z",
"aliases" : [ "CVE-2025-53011" ],
"summary" : "MaterialX Null Pointer Dereference in MaterialXCore Shader Generation due to Unchecked implGraphOutput",
"details" : "### 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 `source/MaterialXCore/Material.cpp`, the following code extracts the output nodes for a given implementation graph:\n\n```cpp\n InterfaceElementPtr impl = materialNodeDef->getImplementation();\n if (impl && impl->isA<NodeGraph>())\n {\n NodeGraphPtr implGraph = impl->asA<NodeGraph>();\n for (OutputPtr defOutput : materialNodeDef->getOutputs())\n {\n if (defOutput->getType() == MATERIAL_TYPE_STRING)\n {\n OutputPtr implGraphOutput = implGraph->getOutput(defOutput->getName());\n for (GraphIterator it = implGraphOutput->traverseGraph().begin(); it != GraphIterator::end(); ++it)\n {\n ElementPtr upstreamElem = it.getUpstreamElement();\n if (!upstreamElem)\n {\n it.setPruneSubgraph(true);\n continue;\n }\n NodePtr upstreamNode = upstreamElem->asA<Node>();\n if (upstreamNode && upstream\n```\n\nHowever, when defining the `implGraphOutput` variable by getting the output node, the code doesn't check whether its value is null before accessing its iterator `traverseGraph()`. This leads to a potential null pointer dereference.\n\n### PoC\n\nPlease download `nullptr_implgraph.mtlx` from the following link:\n\nhttps://github.com/ShielderSec/poc/tree/main/CVE-2025-53011\n\n`build/bin/MaterialXView --material nullptr_implgraph.mtlx`\n\n### Impact\n\nAn attacker could intentionally crash a target program that uses MaterialX by sending a malicious MTLX file.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "MaterialX"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.39.2"
}, {
"fixed" : "1.39.3"
} ]
} ],
"versions" : [ "1.39.2" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/AcademySoftwareFoundation/MaterialX/security/advisories/GHSA-7qw8-3vmf-gj32"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-53011"
}, {
"type" : "WEB",
"url" : "https://github.com/AcademySoftwareFoundation/MaterialX/commit/7ac1c71de5187dc29793292b5a8dc6d784192ecf"
}, {
"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-53011"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-476" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-31T18:31:23Z",
"nvd_published_at" : "2025-08-01T18:15:54Z"
}
}