Description
picklescan before 0.0.28 fails to detect malicious pickle files using torch.utils.collect_env.run function in reduce methods. Attackers can embed undetected code in pickle files that executes remote commands when loaded by victims.
Published: 2026-06-30
Score: 7.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in picklescan occurs before version 0.0.28, where the tool fails to detect malicious pickle files that embed code through the torch.utils.collect_env.run function. When victim users load these deceptive pickle files, the hidden code executes, allowing an attacker to run arbitrary commands on the host. This flaw constitutes a remote code execution weakness (CWE-502). The impact is the potential compromise of confidentiality, integrity, and availability of the affected system because the attacker can run any command.

Affected Systems

The affected product is picklescan, authored by mmaitre314, in all releases earlier than 0.0.28. No specific sub‑versions are listed beyond the major threshold. Users deploying picklescan for handling pickle objects should review the component version.

Risk and Exploitability

The CVSS score of 7.6 marks this issue as High severity. The EPSS score is not available, so the current public exploit probability cannot be quantified, but the vulnerability’s presence in a package that commonly processes untrusted data elevates concern. The flaw is not listed in CISA’s KEV catalog, yet any functionality that evaluates arbitrary pickle data is inherently risky. Attackers could exploit the weakness by providing a crafted pickle that includes malicious code; upon deserialization by picklescan, the victim’s machine would execute it. Given that many systems allow pickle loading without isolation, the risk is real and actionable.

Generated by OpenCVE AI on June 30, 2026 at 23:30 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update picklescan to version 0.0.28 or later, which eliminates the vulnerable use of torch.utils.collect_env.run in reduce methods.
  • If an upgrade is impossible, modify the environment so that picklescan cannot execute the torch.utils.collect_env.run call—either by removing the function from the reduce mapping or by intercepting/stripping suspicious files before they reach picklescan.
  • As an additional protective measure, impose strict least‑privilege execution for any process that deserializes pickle objects, employ runtime monitoring for unexpected command execution, and consider replacing pickle with safer serialization methods such as JSON or MessagePack.

Generated by OpenCVE AI on June 30, 2026 at 23:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 01 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 01 Jul 2026 03:30:00 +0000

Type Values Removed Values Added
First Time appeared Picklescan
Picklescan picklescan
Vendors & Products Picklescan
Picklescan picklescan

Tue, 30 Jun 2026 22:45:00 +0000

Type Values Removed Values Added
Description picklescan before 0.0.28 fails to detect malicious pickle files using torch.utils.collect_env.run function in reduce methods. Attackers can embed undetected code in pickle files that executes remote commands when loaded by victims.
Title picklescan - Undetected Remote Code Execution via torch.utils.collect_env.run
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'}


Subscriptions

Mmaitre314 Picklescan
Picklescan Picklescan
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-01T13:57:37.901Z

Reserved: 2026-06-20T12:48:06.735Z

Link: CVE-2025-71350

cve-icon Vulnrichment

Updated: 2026-07-01T13:57:27.129Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-01T03:15:15Z

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data