Pickle is code, not data: scanning your Python and ML models for unsafe deserialization
The problem in six lines This is code execution, even though it does not look like it: import pickle with open ( "model.pkl" , "rb" ) as f : model = pickle . load ( f ) runs whatever the file's reduce says A pickle file is a program for a small stack-based virtual machine.