Incident report
Picklescan pip.main() Global Allowlist Bypass Evading ML Malware Scanners
CVE-2025-1716 (published February 26, 2025) exposed a critical static-analysis evasion flaw in `picklescan` (`< 0.0.22`), the open-source scanner widely used by model hubs and CI pipelines to detect malicious Python pickle checkpoints. Because `picklescan` failed to flag `pip.main` as a dangerous global callable, attackers could craft pickle model files that passed security scans cleanly while invoking `pip` at load time to download and execute arbitrary malicious PyPI packages. This underscored the fundamental fragility of blocklist-based pickle scanning. Maintainers expanded the dangerous-globals list in v0.0.22, while security architects recommend banning pickle weights altogether.
Incident record
- Reported
- Severity
- High
- Vector
- Supply Chain
- Affected system type
- ML Artifact Security Scanners & Model Registries
- Reference
CVE-2025-1716- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2025-1716
Defensive lesson
Treat pickle scanners as defense-in-depth only; mandate non-executable safetensors formats rather than relying on blocklist scanning.
Referenced techniques
- Supply Chain Compromise: Model Repository AML.T0010.003
- Manipulate AI Model: Embed Malware AML.T0018.002
- Exploitation for Defense Evasion AML.T0107
- Publish Poisoned AI Artifacts: Models AML.T0115.001