Deserialization Threats
PAIT-ARV-100 (Archive Slip Bugs in ML Models)
Eresus Security Research TeamGüvenlik Araştırmacısı
2 Eylül 2024
1 dk okuma
Overview
Many machine learning models are essentially zipped archives containing weights and configurations. A malicious archive can include filenames like ../../../../etc/passwd. When a Python script uses a vulnerable unarchiving function to extract the model, it overwrites critical files on the host.
Remediation
Sanitize paths during extraction. Never extract archives directly to root. Use safe unzipping libraries.