Views
No views yet
torch.load() without weights_only=True at three locations in sensitive_k_means.py (lines 540, 549, 649).SKMPalettizer.compress(sensitivity_path=...) method accepts a user-controlled file path and loads it via torch.load() without the safety flag, allowing arbitrary code execution via pickle deserialization.malicious_sensitivity.pt — Crafted PyTorch checkpoint that executes id when loaded (305 bytes)create_malicious_pt.py — Script to generate the malicious .pt filepoc_coremltools_rce.py — Full PoC demonstrating the vulnerability1# Requires: pip install torch coremltools
2python3 poc_coremltools_rce.py
3
4# Or test just the torch.load part (no coremltools needed):
5python3 poc_coremltools_rce.py --torch-onlyid to demonstrate code execution. No files are modified or deleted.