CVE-2025-1889
PyTorch Model Files Can Bypass Pickle Scanners via Unexpected Pickle Extensions
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (medium).
Description
picklescan before 0.0.22 only considers standard pickle file extensions in the scope for its vulnerability scan. An attacker could craft a malicious model that uses Pickle and include a malicious pickle file with a non-standard file extension. Because the malicious pickle file inclusion is not considered as part of the scope of picklescan, the file would pass security checks and appear to be safe, when it could instead prove to be problematic.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| pip::GitHub Security Advisory pip | picklescan | 0.0.22 |
References
- https://github.com/mmaitre314/picklescan
- https://github.com/mmaitre314/picklescan/commit/baf03faf88fece56a89534d12ce048e5ee36e50e
- https://github.com/mmaitre314/picklescan/security/advisories/GHSA-655q-fx9r-782v
- https://github.com/mmaitre314/picklescan/security/advisories/GHSA-769v-p64c-89pr
- https://nvd.nist.gov/vuln/detail/CVE-2025-1889
- https://sites.google.com/sonatype.com/vulnerabilities/cve-2025-1889
- https://www.sonatype.com/security-advisories/cve-2025-1889