ModelCache Deserialization Vulnerability in Data Manager Component Allowing Arbitrary Code Execution
Vulnerability
A deserialization vulnerability has been identified in ModelCache for LLM, affecting versions through 0.2.0. The issue resides in the data_manager.py component, where attackers can execute arbitrary code by supplying crafted data. This vulnerability exploits Python's pickle deserialization, which is known to be insecure, allowing for the execution of arbitrary code during the unpickling process.
Impact
Exploitation of this vulnerability allows for arbitrary code execution on the server where ModelCache is running.
Reproduction
To reproduce this vulnerability, load a model cache file using PyTorch's torch.load() function without the weights_only parameter. This will trigger the deserialization process, where the crafted data can execute arbitrary code before the model is fully loaded.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
