Back to Research
Deserialization Threats

PAIT-ARV-100 (Archive Slip Bugs in ML Models)

Eresus Security Research TeamSecurity Researcher
September 2, 2024
1 min read

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.