CVE-2026-136909 in Assimp
Summary
by MITRE • 11/25/2026
Assimp 5.1.0 through 6.0.6 contains a memory leak vulnerability in AMFImporter::ParseFile that overwrites the previous XML parser pointer without releasing it. Attackers can supply repeated AMF files to applications using a long-lived Assimp::Importer to retain parsed documents and exhaust memory.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/25/2026
The vulnerability identified within Assimp versions 5.1.0 through 6.0.6 represents a critical resource management failure located in the AMF importer module, specifically within the ParseFile function. This flaw is categorized under CWE-401, which describes missing release of memory after effective usage, and aligns with ATT&CK technique T1499, Endpoint Denial of Service via resource exhaustion. The core technical issue stems from a logic error in how the importer handles internal parser instances during file parsing operations. When an AMF (Additive Manufacturing Format) file is processed, the application instantiates an XML parser to interpret the structured data contained within the file format. However, upon subsequent calls or repeated processing of similar files using a persistent Assimp::Importer instance, the code overwrites the pointer referencing the previously allocated XML parser without invoking the necessary deallocation routines. This oversight means that while the new parser is successfully initialized for the current operation, the memory footprint associated with the prior parser remains allocated and inaccessible to the garbage collector or manual cleanup processes.
The operational impact of this vulnerability manifests as a progressive memory leak within applications that utilize Assimp for 3D model processing over extended periods. Because many graphics engines, game development tools, and CAD software maintain long-lived importer instances to optimize performance by avoiding repeated initialization overheads, they are particularly susceptible to this flaw. An attacker or malicious actor can exploit this behavior by supplying a sequence of AMF files that trigger the ParseFile routine repeatedly. Each invocation results in the allocation of new parser resources while leaving previous allocations orphaned in memory. Over time, as more files are processed, the application consumes an increasing amount of system RAM without releasing it back to the operating system. This unbounded growth continues until the process exhausts available physical and virtual memory, leading to severe performance degradation, swapping activity that slows down the entire system, or a complete crash due to out-of-memory conditions.
This type of vulnerability is particularly dangerous in server-side rendering environments or automated pipelines where large batches of 3D assets are processed continuously. The lack of explicit cleanup for intermediate parsing objects violates standard memory management best practices and creates a reliable vector for denial-of-service attacks against services relying on Assimp. Mitigation strategies must focus on ensuring that all dynamically allocated resources, including parser instances, are properly released before being overwritten or when the importer instance is destroyed. Developers should audit the AMFImporter::ParseFile implementation to ensure that previous XML parser pointers are explicitly deleted or reset prior to assignment of new ones. Additionally, implementing strict resource tracking and using smart pointer mechanisms can help prevent such leaks in future iterations. Until a patched version is deployed, users running affected versions should monitor memory usage closely during batch processing operations and consider restarting services periodically if long-running processes are unavoidable.