Documented Incident · INC-2024-45436 · High severity
Ollama Modelfile ZIP Archive Path Traversal During Local Model Creation
CVE-2024-45436 revealed a Zip-Slip style path traversal flaw inside Ollama (`< 0.1.47`) during extraction of uploaded ZIP archives in `CreateModel` workflows. Crafted archives containing relative `../` entry names could write files outside the intended model staging directory when extracting GGUF or adapter bundles. Combined with unauthenticated API access on misconfigured hosts, attackers gained arbitrary file write capabilities. Maintainers patched archive extraction to sanitize paths before creating output files on disk.
Incident dossier metadata
- Case ID
INC-2024-45436- Classification
- Incident
- Date
- Severity
- High
- Sector
- Cloud & AI Infrastructure
- Attack vector
- Supply Chain
- System type
- Self-Hosted LLM Inference & Model Serving Daemons
- CVE / reference
CVE-2024-45436- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2024-45436
Defensive takeaway
Sanitize every ZIP/tar member path against canonical target root containment prior to writing extracted model files.
Mapped AI security techniques
- Supply Chain Compromise: Model Repository AML.T0010.003
- User Execution: Unsafe AI Artifacts AML.T0011.000
- Exploit Automated Artifact Processing Pipeline AML.T0119
Mapped defensive controls
- Verify AI Artifacts AML.M0014
- Vulnerability Scanning AML.M0016
- Control Access to AI Models and Data in Production AML.M0019
Source citation records
- NVD Record CVE-2024-45436: Ollama Modelfile ZIP Path Traversal · NIST National Vulnerability Database (NVD) ·