CVE-2026-134866 in Assimp
Summary
by MITRE • 11/23/2026
Assimp 6.0.0 through 6.0.6 contains an infinite loop vulnerability in SkipLine that allows attackers to hang parsing by supplying files with '#' comment lines. Attackers can provide crafted OFF, LWS, or MD3 shader files so ReadFile never returns, consuming a CPU core and denying service.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/23/2026
The Assimp library, specifically versions 6.0.0 through 6.0.6, contains a critical logic error within the SkipLine function that leads to an infinite loop condition when processing certain malformed input files. This vulnerability arises from improper validation of line termination sequences in text-based model formats such as OFF, LWS, and MD3 shader files. When the parser encounters comment lines prefixed with the hash symbol (#), it attempts to skip to the end of the current line by searching for a newline character or carriage return sequence. However, due to insufficient boundary checks or incorrect state management within the SkipLine routine, the function fails to properly advance the file pointer when specific edge cases are met, causing the loop condition to persist indefinitely without breaking out of the iteration.
This flaw directly impacts the ReadFile operation, which relies on successful execution of helper functions like SkipLine to parse data structures correctly. Because the infinite loop prevents the parser from returning control to the main processing thread, any application utilizing Assimp to load these crafted files will become unresponsive. The process remains stuck in a tight CPU-bound loop, effectively consuming one full core indefinitely. This behavior constitutes a classic denial of service scenario where an attacker can disrupt availability by simply providing a maliciously constructed file that triggers this specific code path during the initial parsing phase.
From a classification perspective, this vulnerability aligns with CWE-835, which describes loops that never terminate due to logic errors rather than resource exhaustion alone. It also maps to MITRE ATT&CK technique T1499.002, known as Endpoint Denial of Service: Resource Loop, where an attacker uses a loop or recursion to exhaust system resources and cause service disruption. The attack vector is primarily local file-based but can be exploited remotely if the vulnerable library processes untrusted assets from network sources without prior sanitization or sandboxing.
Mitigation strategies should focus on immediate patching of the Assimp dependency to version 6.0.7 or later, where this logic error has been corrected by ensuring proper bounds checking and loop termination conditions within the SkipLine function. For systems unable to update immediately, implementing strict input validation before passing files to the parser can help mitigate risk. This includes verifying file integrity, limiting file sizes, and using sandboxed environments for parsing untrusted assets. Additionally, integrating timeout mechanisms into the application layer that detect hung threads during file loading can provide a secondary defense by forcibly terminating processes that exceed expected processing durations.