Documented Incident · INC-2024-3568 · Elevated severity
Hugging Face Transformers TensorFlow Checkpoint Pickle Deserialization RCE
CVE-2024-3568 disclosed arbitrary code execution inside Hugging Face `transformers` (`load_tf_weights_in_*` / `TFPreTrainedModel` checkpoint utilities) when deserializing untrusted repository artifacts. Certain checkpoint conversion and loading paths invoked unsafe `pickle` deserialization on legacy model files even when engineers assumed framework helpers performed safe loading. Loading an attacker-controlled model repository triggered OS command execution on developer or CI workstations. Maintainers restricted legacy pickle helper calls and reinforced Safetensors defaults across repository loaders.
Incident dossier metadata
- Case ID
INC-2024-3568- Classification
- Incident
- Date
- Severity
- Elevated
- Sector
- Cloud & AI Infrastructure
- Attack vector
- Supply Chain
- System type
- ML Training & Checkpoint Loading Pipelines
- CVE / reference
CVE-2024-3568- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2024-3568
Defensive takeaway
Enforce safetensors or verified weights_only loaders across all model loading entrypoints and scan external checkpoints in isolated environments.
Mapped AI security techniques
- Supply Chain Compromise: Model Repository AML.T0010.003
- User Execution: Unsafe AI Artifacts AML.T0011.000
- Publish Poisoned AI Artifacts: Models AML.T0115.001
Mapped defensive controls
- Restrict Library Loading AML.M0011
- Verify AI Artifacts AML.M0014
- AI Model Distribution Methods AML.M0017
Source citation records
- NVD Record CVE-2024-3568: Transformers TensorFlow Checkpoint Deserialization RCE · NIST National Vulnerability Database (NVD) ·