Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. picklescan
  4. ›
  5. CVE-2025-1889

CVE-2025-1889: PyTorch Model Files Can Bypass Pickle Scanners via Unexpected Pickle Extensions

March 3, 2025 (updated March 6, 2025)

Picklescan fails to detect hidden pickle files embedded in PyTorch model archives due to its reliance on file extensions for detection. This allows an attacker to embed a secondary, malicious pickle file with a non-standard extension inside a model archive, which remains undetected by picklescan but is still loaded by PyTorch’s torch.load() function. This can lead to arbitrary code execution when the model is loaded.

References

  • github.com/advisories/GHSA-769v-p64c-89pr
  • github.com/mmaitre314/picklescan
  • github.com/mmaitre314/picklescan/commit/baf03faf88fece56a89534d12ce048e5ee36e50e
  • github.com/mmaitre314/picklescan/security/advisories/GHSA-769v-p64c-89pr
  • nvd.nist.gov/vuln/detail/CVE-2025-1889
  • sites.google.com/sonatype.com/vulnerabilities/cve-2025-1889

Code Behaviors & Features

Detect and mitigate CVE-2025-1889 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.22

Fixed versions

  • 0.0.22

Solution

Upgrade to version 0.0.22 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-646: Reliance on File Name or Extension of Externally-Supplied File

Source file

pypi/picklescan/CVE-2025-1889.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:36 +0000.