Intel

AIKIDO-2026-873810

timm is vulnerable to Unsafe Deserialization

Unsafe DeserializationGHSA-pqww-w348-m542 Published Yesterday

50

Medium Risk

This Affects:

PYTHONtimm
0.0.1 - 1.0.27
Fixed in 1.0.28
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

timm is vulnerable to Unsafe Deserialization in versions 0.0.1 - 1.0.27.

How to fix this

Upgrade the timm library to the patch version.