Description
picklescan before 0.0.28 fails to detect malicious torch.utils.bottleneck.__main__.run_cprofile function calls in pickle files, allowing attackers to bypass safety checks. Remote attackers can embed undetected code in pickle files to achieve arbitrary code execution when victims load the files.
Published: 2026-07-04
Score: 7.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

picklescan versions prior to 0.0.28 contain a deserialization flaw: the tool does not detect malicious calls to torch.utils.bottleneck.__main__.run_cprofile that can be embedded inside pickle files. When a victim loads such a file the code is executed automatically, granting the attacker full control over the host and compromising confidentiality, integrity, and availability. This weakness is categorized as CWE‑502 – Serialization of untrusted data. The impact is that any user who deserializes a crafted pickle file in an environment where picklescan is installed can execute arbitrary code.

Affected Systems

The vulnerability affects installations of picklescan from the picklescan GitHub project running any version earlier than 0.0.28. Recent releases may contain a fix, but verify that the unsafe deserialization logic has been removed; upgrading to the latest available version could eliminate the flaw if a remediation has been released.

Risk and Exploitability

The CVSS score of 7.6 indicates high severity, while the EPSS score of <1% suggests a very low probability of exploitation at this time. The flaw is remotely exploitable; an attacker only needs to distribute a malicious pickle file and convince a victim to load it. The vulnerability is not listed in CISA’s KEV catalog, and exploitation would require no specialized network access beyond the ability to deliver the forbidden file. With no network or privilege escalation prerequisites beyond deserialization, the attack vector is straightforward and relies solely on the presence of picklescan in the target environment.

Generated by OpenCVE AI on July 21, 2026 at 08:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to the most recent picklescan release, which may include a fix for the deserialization logic.
  • Restrict pickle deserialization to trusted sources and reject any untrusted or externally supplied pickle data.
  • Implement input validation and run deserialization in a sandboxed environment to limit the impact of any remaining deserialization weaknesses.

Generated by OpenCVE AI on July 21, 2026 at 08:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 06 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Sat, 04 Jul 2026 02:45:00 +0000

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

Sat, 04 Jul 2026 01:45:00 +0000

Type Values Removed Values Added
Description picklescan before 0.0.28 fails to detect malicious torch.utils.bottleneck.__main__.run_cprofile function calls in pickle files, allowing attackers to bypass safety checks. Remote attackers can embed undetected code in pickle files to achieve arbitrary code execution when victims load the files.
Title picklescan - Arbitrary Code Execution via torch.utils.bottleneck.__main__.run_cprofile
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-06T13:16:00.238Z

Reserved: 2026-06-20T13:01:42.505Z

Link: CVE-2025-71366

cve-icon Vulnrichment

Updated: 2026-07-06T13:15:18.719Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-21T09:00:03Z

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data