home / blog

2026-11-12 · high

CVE-2024-37032: Path traversal and RCE in Ollama

Path traversal to RCE in Ollama <0.1.34 via missing SHA256 digest validation. CVSS 8.8.

CVE-2024-37032: Path traversal and RCE in Ollama

CVE-2024-37032 concerns missing SHA256 digest format validation in Ollama before version 0.1.34. When the system retrieves a model path from the local repository, it does not verify that the digest is exactly a 64-character hexadecimal SHA256 hash. This omission allows an attacker to supply malformed digests (shorter, longer, or with prefixes like '../') to bypass directory structures and access or modify arbitrary files outside the designated model area.

The impact is severe: with CVSS 8.8 (HIGH), the vulnerability enables both arbitrary file write and remote code execution. A recent GitHub signal (2026-11-12) reports PoC and detection tooling on public repositories, indicating ongoing attention from the security community. The vulnerability was fixed in version 0.1.34, released after the CVE was published on May 31, 2024.

Administrators and IT teams must urgently verify the version of Ollama in use (command: ollama --version) and update immediately to 0.1.34 or later. File system monitoring for anomalous model access is recommended, as is restricting Ollama access via firewall or network segmentation. If immediate patching is not possible, severely limit who can interact with model retrieval APIs.

At a glance

What
Missing SHA256 format validation (64 hex digits) in model path retrieval in Ollama before 0.1.34. Enables path traversal with malformed digests (fewer than 64 digits, more than 64, '../' prefix) and arbitrary file write or RCE (CVE-2024-37032).
Severity
CVSS 8.8 (HIGH). Declared severity: high. GitHub signal from 2026-11-12 confirms PoC and detection tooling availability with description 'path traversal to arbitrary file write and RCE'.
Affected versions
Ollama before version 0.1.34. Version 0.1.34 and later have implemented correct SHA256 digest validation.
Fix
Update Ollama to version 0.1.34 or later. The patch validates that the digest is SHA256 with exactly 64 hex digits.
Status
CVE published 2024-05-31. Vulnerability fixed in release 0.1.34. PoC and detection tooling available on GitHub repository for authorized testing.
Action
1) Check current version (ollama --version); 2) Update to 0.1.34+; 3) Monitor file system for anomalous model access; 4) Restrict access via firewall and network segmentation.

Sources: NVD, CVE-2024-37032

← All articles