GHSA-2fh4-gpch-vqv4

Suggest an improvement
Source
https://github.com/advisories/GHSA-2fh4-gpch-vqv4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-2fh4-gpch-vqv4/GHSA-2fh4-gpch-vqv4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2fh4-gpch-vqv4
Withdrawn
2025-03-10T18:26:09Z
Published
2025-03-10T12:30:56Z
Modified
2025-03-10T18:39:27.570173Z
Severity
  • 5.3 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:L/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X CVSS Calculator
Summary
Duplicate Advisory: Zip Flag Bit Exploit Crashes Picklescan But Not PyTorch
Details

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.

Database specific
{
    "github_reviewed": true,
    "nvd_published_at": "2025-03-10T12:15:12Z",
    "cwe_ids": [
        "CWE-345"
    ],
    "github_reviewed_at": "2025-03-10T18:26:09Z",
    "severity": "MODERATE"
}
References

Affected packages

PyPI / picklescan

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.0.23

Affected versions

0.*
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.0.7
0.0.8
0.0.9
0.0.10
0.0.11
0.0.12
0.0.13
0.0.14
0.0.15
0.0.16
0.0.17
0.0.18
0.0.19
0.0.20
0.0.21
0.0.22

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-2fh4-gpch-vqv4/GHSA-2fh4-gpch-vqv4.json"