timm is vulnerable to Unsafe Deserialization
50
CVE Score
Medium
Unsafe Deserialization
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.
Upgrade the timm library to the patch version.
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.
0.0.1 - 1.0.27
Fixed in 1.0.28timm is vulnerable to Unsafe Deserialization in versions 0.0.1 - 1.0.27.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.