Skip to the content
AI and Cybersecurity Learning and Practice Center Test automation Open the Learning Center

WeaknessASC-2026-0062Other weakness

Unsafe deserialization beyond pickle

MediumMitigated

joblib files, numpy allow_pickle, Keras Lambda layers and bugs in model format parsers can all run code or crash services when a crafted file is loaded.

How to detect it

  • Loading .joblib, .npy with allow_pickle, or Keras models with Lambda layers
  • Parsers for model formats on old versions

How to resolve it

  • Prefer safetensors and formats without code
  • Enable safe mode in Keras and keep parsers updated
  • Load untrusted files in an isolated process

How to investigate

  1. Identify the file and where it came from
  2. Check the loading host for unexpected activity

Sources

Open it in the Learning Center's vulnerability database