timm is vulnerable to Unsafe Deserialization
50
Medium Risk
The load_class_map helper and tar-info cache reader deserialize .pkl files with unrestricted pickle.load, and some checkpoint loaders call torch.load without weights_only. A crafted class map, tar cache, or checkpoint can therefore execute arbitrary code during load. The fix uses restricted unpicklers for those pickle paths and loads checkpoints with weights_only=True.
You are affected if you are using a version that falls within the vulnerable range and you load class maps, tar-info caches, or checkpoints from untrusted sources.
timm is vulnerable to Unsafe Deserialization in versions 0.0.1 - 1.0.27.
Upgrade the timm library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant