# Picklescan missing detection in torch.utils._config_module.load_config

Source: https://junglewise.ai/threats/picklescan-missing-detection-in-torch-utils-config-module-load-config-c2ec13d0  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-21. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

Severity: high · CVSS 8.1 · Published 2026-06-21

Picklescan is a security tool that scans pickle files (Python's serialization format) for malicious code before loading them. A vulnerability allows attackers to craft specially crafted pickle files that bypass Picklescan's detection by using PyTorch's torch.utils._config_module.load_config function, then execute arbitrary code when the file is loaded. This poses a significant supply chain risk for organizations using machine learning models or other Python serialized objects from untrusted sources.

Technologies: [picklescan (PyPI)](https://junglewise.ai/threats/technologies/picklescan). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** High severity, with a CVSS score of 8.1, published 21 June 2026.

**Which products and versions are affected?** picklescan (PyPI) <= 0.0.27.

**Is there a fix for This vulnerability?** A patch was published on 0.0.28: Fix available in version 0.0.28 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is This vulnerability attacked?** It is attacked over the network, in a software library.

**Am I affected?** Check whether you run picklescan (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

This vulnerability is a deserialization bypass (CWE-502) affecting Picklescan's detection engine. Attackers exploit a missing check for the torch.utils._config_module.load_config function in reduce methods—a specific mechanism for object reconstruction during pickle deserialization. The attack works by embedding a payload that calls ConfigModule.load_config with a malicious pickled object as an argument; the detector misses this code path and clears the file as safe, but pickle.load() executes the payload when deserializing. The attack requires user interaction (the victim must call pickle.load() after checking with Picklescan) and network delivery of the malicious pickle file. Patch version 0.0.28 addresses this by adding detection for this specific function call pattern.

## Affected products

- mmaitre314 picklescan <= 0.0.27

## Timeline

- 2026-06-21: disclosed: Published to GitHub Advisory Database
- 0.0.28: patched: Fix available in version 0.0.28
- 2026-09-11: other: Advisory withdrawn as duplicate of GHSA-vv6j-3g6g-2pvj

## References

- [https://github.com/mmaitre314/picklescan/security/advisories/GHSA-vv6j-3g6g-2pvj](https://github.com/mmaitre314/picklescan/security/advisories/GHSA-vv6j-3g6g-2pvj)
- [https://www.vulncheck.com/advisories/picklescan-arbitrary-code-execution-via-torch-utils-config-module-load-config-bypass](https://www.vulncheck.com/advisories/picklescan-arbitrary-code-execution-via-torch-utils-config-module-load-config-bypass)

## Related threats

- [picklescan detection bypass via _operator.methodcaller](https://junglewise.ai/threats/cve-2025-71375-picklescan-detection-bypass-via-operator-methodcaller)
- [picklescan security bypass via operator.methodcaller](https://junglewise.ai/threats/cve-2025-71373-picklescan-security-bypass-via-operator-methodcaller)
- [Picklescan detection bypass via numpy getlincoef gadget](https://junglewise.ai/threats/cve-2025-71372-picklescan-detection-bypass-via-numpy-getlincoef-gadget)
- [picklescan safety check bypass via PyTorch decoder basichandlers](https://junglewise.ai/threats/cve-2025-71369-picklescan-safety-check-bypass-via-pytorch-decoder-basichandlers)
- [picklescan security bypass via _operator.attrgetter function call](https://junglewise.ai/threats/cve-2025-71367-picklescan-security-bypass-via-operator-attrgetter-function-call)
