CVE-2026-136170 in Assimp
Summary
by MITRE • 11/24/2026
Assimp through 6.0.6 contains a use-after-free and double free vulnerability in OpenGEXImporter.cpp because InternReadFile does not reset cached importer state between files. Attackers can supply OpenGEX files to applications reusing one Importer instance, causing freed node, camera, and material pointers to corrupt heap memory and crash.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/24/2026
The Assimp library through version 6.0.6 contains critical memory management vulnerabilities within the OpenGEXImporter module that stem from improper state initialization during sequential file processing operations. Specifically, the InternReadFile function fails to reset cached importer state between different files when a single Importer instance is reused for multiple import tasks. This architectural oversight results in two distinct but related heap corruption flaws: use-after-free and double free vulnerabilities. These issues arise because internal pointers representing nodes, cameras, materials, and other scene graph elements are not properly cleared or reallocated before processing the next file, leaving references to previously freed memory structures active within the importer context.
From a technical perspective, this flaw allows an attacker who can supply maliciously crafted OpenGEX files to applications that reuse Importer instances to trigger heap corruption. When the application processes the first file, Assimp allocates and populates various data structures including node hierarchies, camera definitions, and material properties. Upon completion of the import process for the first file, these resources are typically freed or marked for deallocation as part of standard cleanup procedures. However, because the cached state is not reset, subsequent calls to InternReadFile with a new OpenGEX file may attempt to access, modify, or free these already-deallocated pointers. This leads to undefined behavior where the program interacts with memory that has been returned to the system allocator and potentially reused for other purposes by the operating system or other threads.
The operational impact of this vulnerability is severe, primarily manifesting as application crashes due to segmentation faults or access violations when the corrupted heap state causes invalid memory accesses. Beyond simple denial of service, such heap corruption vulnerabilities are frequently exploitable for remote code execution if an attacker can carefully craft input files that manipulate the freed memory chunks in a predictable manner. By controlling the contents of subsequent OpenGEX files, an adversary might overwrite function pointers or object headers within the reused memory space, thereby gaining control over program flow. This is particularly dangerous in applications like 3D modeling software, game engines, and visualization tools where Assimp is commonly integrated to handle asset loading workflows that involve processing multiple assets sequentially using shared importer instances for performance optimization.
This vulnerability aligns with CWE-416 Use After Free and CWE-415 Double Free, both of which describe scenarios where pointers are used after their memory has been freed or when the same memory is freed more than once. In terms of attack vector classification under MITRE ATT&CK, this falls under Taint Analysis failures leading to Memory Corruption, often exploited via Input Validation weaknesses (CWE-20) as the application fails to properly sanitize or reset internal state based on external input context. The lack of proper isolation between import sessions creates a persistent vulnerability surface that persists across multiple API calls within the same process lifetime.
Mitigation strategies should focus on ensuring strict lifecycle management for importer instances and their associated caches. Developers integrating Assimp must ensure that any cached data structures are explicitly cleared or reinitialized before processing a new file, particularly when using a single Importer instance for batch operations. Upgrading to patched versions of the library where this state reset logic has been corrected is the primary remediation path. Additionally, implementing robust input validation and sandboxing mechanisms can reduce the risk of exploitation by limiting the impact of any successful memory corruption attempts. Security teams should also consider employing heap sanitizers such as AddressSanitizer during testing phases to detect similar issues in custom implementations or downstream applications that rely on Assimp for 3D asset processing.