Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. picklescan
  4. ›
  5. GHSA-2fh4-gpch-vqv4

GHSA-2fh4-gpch-vqv4: Duplicate Advisory: Zip Flag Bit Exploit Crashes Picklescan But Not PyTorch

March 10, 2025

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-w8jq-xcqf-f792. This link is maintained to preserve external references.

Original Description

picklescan before 0.0.23 fails to detect malicious pickle files inside PyTorch model archives when certain ZIP file flag bits are modified. By flipping specific bits in the ZIP file headers, an attacker can embed malicious pickle files that remain undetected by PickleScan while still being successfully loaded by PyTorch’s torch.load(). This can lead to arbitrary code execution when loading a compromised model.

References

  • github.com/advisories/GHSA-2fh4-gpch-vqv4
  • github.com/mmaitre314/picklescan/commit/e58e45e0d9e091159c1554f9b04828bbb40b9781
  • github.com/mmaitre314/picklescan/security/advisories/GHSA-w8jq-xcqf-f792
  • nvd.nist.gov/vuln/detail/CVE-2025-1945
  • sites.google.com/sonatype.com/vulnerabilities/cve-2025-1945

Code Behaviors & Features

Detect and mitigate GHSA-2fh4-gpch-vqv4 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.23

Fixed versions

  • 0.0.23

Solution

Upgrade to version 0.0.23 or above.

Weakness

  • CWE-345: Insufficient Verification of Data Authenticity

Source file

pypi/picklescan/GHSA-2fh4-gpch-vqv4.yml

Spotted a mistake? Edit the file on GitLab.

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

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