Advisory

PYSEC-2025-21

Also known as: CVE-2025-1945, GHSA-w8jq-xcqf-f792

Summary

The record has no summary.

Details

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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2025-03-10 12:15 UTC
Modified
2025-04-09 17:59 UTC

Affected packages and fixes

picklescan

PyPI · All systems

Affected

  • introduced 0, fixed 0.0.23 (ecosystem)

Fixed versions

0.0.23

Fix

  • Fixed version 0.0.23
    pip install --upgrade picklescan==0.0.23

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences