Intel

AIKIDO-2026-873810

timm is vulnerable to Unsafe Deserialization

GHSA-pqww-w348-m542Published Jul 20, 2026
July 20, 2026

50

CVE Score

Medium

Unsafe Deserialization

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.

How do I fix this?

Upgrade the timm library to the patch version.

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.

Package

Versions

0.0.1 - 1.0.27

Fixed in 1.0.28

Background info

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

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea