Skip to content
Heist/ feed
Back to feed
Medium

MaterialX's Lack of Import Depth Limit Leads to DoS (Denial-Of-Service) Via Stack Exhaustion

Type: advisorySources: OSV

MaterialX is an open standard for the exchange of rich material and look-development content across applications and renderers. In version 1.39.2, nested imports of MaterialX files can lead to a crash via stack memory exhaustion, due to the lack of a limit on the "import chain" depth. When parsing file imports, recursion is used to process nested files; however, there is no limit imposed to the depth of files that can be parsed by the library. By building a sufficiently deep chain of MaterialX files one referencing the next, it is possible to crash the process using the MaterialX library via stack exhaustion. This is fixed in version 1.39.3.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-53012
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 02:39 UTC · Revision 1

Source evidence

MaterialX's Lack of Import Depth Limit Leads to DoS (Denial-Of-Service) Via Stack Exhaustion

core-osv · Original source

Published 1 Aug 2025, 18:00 UTC

MaterialX is an open standard for the exchange of rich material and look-development content across applications and renderers. In version 1.39.2, nested imports of MaterialX files can lead to a crash via stack memory exhaustion, due to the lack of a limit on the "import chain" depth. When parsing file imports, recursion is used to process nested files; however, there is no limit imposed to the depth of files that can be parsed by the library. By building a sufficiently deep chain of MaterialX files one referencing the next, it is possible to crash the process using the MaterialX library via stack exhaustion. This is fixed in version 1.39.3.

osv:CVE-2025-53012
Complete source record
{
  "id": "eb77cbd8a69cf0fd4d08b5c86cd33a24338bd6cdaefa17661f854fa6ccc8b472",
  "url": "https://osv.dev/vulnerability/CVE-2025-53012",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "MaterialX's Lack of Import Depth Limit Leads to DoS (Denial-Of-Service) Via Stack Exhaustion",
    "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, nested imports of MaterialX files can lead to a crash via stack memory exhaustion, due to the lack of a limit on the \"import chain\" depth. When parsing file imports, recursion is used to process nested files; however, there is no limit imposed to the depth of files that can be parsed by the library. By building a sufficiently deep chain of MaterialX files one referencing the next, it is possible to crash the process using the MaterialX library via stack exhaustion. This is fixed in version 1.39.3.",
    "evidence": "osv:CVE-2025-53012",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-53012",
      "aliases": [
        "CVE-2025-53012",
        "GHSA-qc2h-74x3-4v3w",
        "PYSEC-2026-1608"
      ],
      "metrics": [
        {
          "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/academysoftwarefoundation/materialx",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c27914b8d0ed042948ee40526458f2673f5284fa"
                },
                {
                  "fixed": "3b79bd735036dc96942836a9d076b6af3bd8fbdf"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "1.39.2"
                      },
                      {
                        "fixed": "1.39.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "3b79bd735036dc96942836a9d076b6af3bd8fbdf"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.39.3"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.39.2-NA",
            "v1.39.3-rc1",
            "v1.39.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-53012.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.070097938Z",
      "provider": "osv",
      "references": [
        "https://github.com/AcademySoftwareFoundation/MaterialX/blob/main/documents/Specification/MaterialX.Specification.md#mtlx-file-format-definition",
        "https://github.com/AcademySoftwareFoundation/MaterialX/pull/2233/commits/6182c07467297416a30d148ab531d81198686dc5",
        "https://github.com/AcademySoftwareFoundation/MaterialX/releases/tag/v1.39.3",
        "https://github.com/AcademySoftwareFoundation/MaterialX/security/advisories/GHSA-qc2h-74x3-4v3w",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/53xxx/CVE-2025-53012.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-53012"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-400"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/53xxx/CVE-2025-53012.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-53012",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517433,
  "published_at": "2025-08-01T18:00:39.115+00:00"
}