---
id: CVE-2025-71350
title: >-
  picklescan before 0.0.28 fails to detect malicious pickle files using
  torch.utils.collect_env.run function in reduce methods
summary: >-
  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.
severity: high
cvss: 8.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N'
cwe:
  - CWE-502
vendor: picklescan
product: picklescan
affected:
  - picklescan < 0.0.28
patched:
  - picklescan 0.0.28
published: '2026-06-30'
updated: '2026-10-12'
sourceUpdated: '2026-10-12T21:10:00.227'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-71350'
references:
  - url: >-
      https://github.com/mmaitre314/picklescan/security/advisories/GHSA-f745-w6jp-hpxx
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/picklescan-undetected-remote-code-execution-via-torch-utils-collect-env-run
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/mmaitre314/picklescan/security/advisories/GHSA-f745-w6jp-hpxx
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/mmaitre314/picklescan/pull/47'
  - url: >-
      https://github.com/mmaitre314/picklescan/commit/7f994d62084fe43f1cffdef2f9bae6923344ef53
  - url: 'https://github.com/mmaitre314/picklescan'
  - url: 'https://github.com/mmaitre314/picklescan/releases/tag/v0.0.28'
tags:
  - nvd
  - osv
  - pip
epss: 0.00449
epssPercentile: 0.39184
aliases:
  - GHSA-f745-w6jp-hpxx
ecosystem: pip
ingestedAt: '2026-07-08T18:25:48.659Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2025-71350)

Affected packages:

- `picklescan < 0.0.28`

Patched in:

- `picklescan 0.0.28`

Source: https://osv.dev/vulnerability/GHSA-f745-w6jp-hpxx
