Malicious AI Model Files: Pickle Exploits and Arbitrary Code Execution on Model Load
Downloading a model file and calling torch.load() is a potential code execution event. This post explains the pickle mechanics that make it so, the real-world exploits already found in the wild, how HuggingFace has responded, and what safe alternatives actually prevent the attack.