AI Security Atlas › All entries › Model Supply Chain & Training Integrity

VulnerabilityCritical severity

Unsafe Model Deserialization

Pipelines call pickle-based loaders on third-party checkpoints, tokenizers, or LoRA adapters.

Open in the interactive atlas →

Impact

Model loading becomes a remote code execution primitive.

Why this severity

Impact High × Likelihood High = Critical

Impact high: loading becomes remote code execution. Likelihood high: malicious pickled models with reverse shells were found on Hugging Face (2025 incident).

Impact High: Code execution, credential compromise, exposure of regulated or confidential data, irreversible actions, or system-wide failure.
Likelihood High: At least one documented real-world incident, and the attack needs no access beyond what the system exposes to ordinary users or content (publishing to a public registry counts as ordinary).

Method: OWASP Risk Rating Methodology

Evidence

Related

Exploited by

Mitigated by

Remediation

  1. Ban torch.load / pickle.load on untrusted input via lint rules.
  2. Convert legacy checkpoints to safetensors in a sandbox once, then pin.
  3. Set weights_only=True where pickle cannot yet be removed.

How to verify

Pattern

torch.load(path, weights_only=True)

Framework mapping

OWASP Top 10 for LLM Applications 2025

OWASP Top 10 for Agentic Applications 2026

MITRE ATLAS

NIST AI RMF 1.0