CVE-2025-71369

picklescan - Unsafe Deserialization via torch.utils.data.datapipes.utils.decoder.basichandlers

Published Jul 4, 2026 CVSS 4.0 · 7.6 High EPSS < 1% KEV · Not listed
Description
picklescan before 0.0.28 fails to detect malicious pickle files that use torch.utils.data.datapipes.utils.decoder.basichandlers in reduce methods, allowing attackers to bypass safety checks. Remote attackers can embed undetected malicious code in pickle files that executes during deserialization, enabling remote code execution.

Analysis

AI-generated

Technical impact

picklescan before version 0.0.28 does not detect malicious pickle files that embed torch.utils.data.datapipes.utils.decoder.basichandlers in their reduce methods, enabling unsafe deserialization that triggers arbitrary code execution during load. The flaw, classified as CWE‑502, allows an attacker to embed executable code into a pickle file that will run inside the picklescan process as soon as the file is deserialized, compromising confidentiality, integrity, and availability of the host system as the tool executes with whatever privileges it possesses.

Affected Systems

The vulnerability impacts the picklescan utility from mmaitre314. Any installation using a picklescan version earlier than 0.0.28 is exposed; the issue is resolved in version 0.0.28 and later.

Risk and Exploitability

The CVSS score of 7.6 indicates a high severity assessment, while an EPSS score of less than 1 % suggests exploitation is currently considered unlikely on a large scale. The vulnerability is not listed in the CISA KEV catalog. Based on the description, the most likely attack vector involves an attacker crafting a pickle file that includes basichandlers in its reduce methods, then submitting that file to picklescan for analysis. If processed, the embedded code will execute during deserialization, granting the attacker remote execution capabilities, which can be especially dangerous if picklescan runs with elevated privileges or processes untrusted files.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade picklescan to version 0.0.28 or later.
  • Run picklescan inside a sandboxed or containerized environment with restricted filesystem, network, and privilege access.
  • Before deserialization, validate or strip any reduce methods that reference torch.utils.data.datapipes.utils.decoder.basichandlers from incoming pickle files.

Generated by OpenCVE AI on August 1, 2026 at 19:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Picklescan
Picklescan picklescan
Vendors & Products Picklescan
Picklescan picklescan
Type Values Removed Values Added
Description picklescan before 0.0.28 fails to detect malicious pickle files that use torch.utils.data.datapipes.utils.decoder.basichandlers in reduce methods, allowing attackers to bypass safety checks. Remote attackers can embed undetected malicious code in pickle files that executes during deserialization, enabling remote code execution.
Title picklescan - Unsafe Deserialization via torch.utils.data.datapipes.utils.decoder.basichandlers
First Time appeared Mmaitre314
Mmaitre314 picklescan
Weaknesses CWE-502
CPEs cpe:2.3:a:mmaitre314:picklescan:*:*:*:*:*:*:*:*
Vendors & Products Mmaitre314
Mmaitre314 picklescan
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 7.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 6, 2026, 4:26 PM
Reserved
Jun 20, 2026, 1:01 PM
Status
Deferred
Published
Jul 4, 2026, 2:16 AM
Modified
Oct 12, 2026, 7:10 PM