PyPA Advisory Database
PYSEC-2025-152
Details
An Improper Handling of Exceptional Conditions vulnerability in the ZIP archive scanning component of mmaitre314 picklescan allows a remote attacker to bypass security scans. This is achieved by crafting a ZIP archive containing a file with a bad Cyclic Redundancy Check (CRC), which causes the scanner to halt and fail to analyze the contents for malicious pickle files. When the file incorrectly considered safe is loaded, it can lead to the execution of malicious code.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | picklescan | All versions before 0.0.31 (fixed in 0.0.31) |
References
- https://github.com/mmaitre314/picklescan/blob/v0.0.29/src/picklescan/relaxed_zipfile.py#L35
- https://huggingface.co/jinaai/jina-embeddings-v2-base-en/resolve/main/pytorch_model.bin?download=true
- https://huggingface.co/jinaai/jina-embeddings-v2-base-en/tree/main
- https://github.com/mmaitre314/picklescan/security/advisories/GHSA-mjqp-26hc-grxg