CVE-2025-71348
JSON

7.6high

picklescan - Arbitrary Code Execution via torch.utils._config_module.load_config Bypass

Severity
7.6high CVSS:4.0 by VulnCheck
Exploit likelihood
0.40% (higher than 36% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-vv6j-3g6g-2pvjPYSEC-2026-245

Description

picklescan before 0.0.28 fails to detect malicious pickle files that invoke torch.utils._config_module.load_config function within reduce methods. Attackers can craft pickle files embedding arbitrary code that evades detection but executes during pickle.load, enabling remote code execution in supply chain attacks.

Affected

Product or packageVersionsReported by
picklescan picklescanbefore 0.0.28
Not affected: 0.0.28
CVE List
picklescan (PyPI)before 0.0.28GitHub Advisory Database, PyPA Advisory Database
mmaitre314 picklescanbefore 0.0.28NVD

All scores

VulnCheck7.6high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
VulnCheck8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
GitHub8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
PyPA Advisory Database7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-345CWE-502

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

picklescan before 0.0.28 fails to detect malicious pickle files that invoke torch.utils._config_module.load_config function within reduce methods. Attackers can craft pickle files embedding arbitrary code that evades detection but executes during pickle.load, enabling remote code execution in supply chain attacks.

GitHub Advisory Database
Summary

Using torch.utils._config_module.load_config function, which is a pytorch library function to execute remote pickle file.

Details

The attack payload executes in the following steps:

First, the attacker crafts the payload by calling the torch.utils._config_module.load_config function via the reduce method. Then the victim checks whether the pickle file is safe using the Picklescan library. Because the library fails to detect any dangerous functions, the victim decides to pickle.load() this malicious file, leading to remote code execution.

PoC
import pickle
from torch.utils._config_module import ConfigModule

class Evil:
    def __reduce__(self):
        return (os.system, ('whoami',))

class EvilTorchUtilsConfigModuleLoadConfig:
    def __reduce__(self):
        evil_payload = pickle.dumps(Evil())
        return ConfigModule.load_config, (None, evil_payload)
Impact

Who is impacted? Any organization or individual relying on picklescan to detect malicious pickle files inside PyTorch models. What is the impact? Attackers can embed malicious code in pickle file that remains undetected but executes when the pickle file is loaded. Supply Chain Attack: Attackers can distribute infected pickle files across ML models, APIs, or saved Python objects.

Corresponding

https://github.com/FredericDT https://github.com/Qhaoduoyu

NVD (es)

picklescan anterior a la versión 0.0.28 no detecta archivos pickle maliciosos que invocan la función torch.utils._config_module.load_config dentro de los métodos reduce. Los atacantes pueden crear archivos pickle que incrustan código arbitrario que evade la detección pero se ejecuta durante pickle.load, posibilitando la ejecución remota de código en ataques a la cadena de suministro.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-71348 changed 2026-11-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-vv6j-3g6g-2pvj changed 2026-09-11CC-BY-4.0
NVDCVE-2025-71348 changed 2026-10-12Public domain
PyPA Advisory DatabasePYSEC-2026-245 changed 2026-06-27CC-BY-4.0