A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      Digital Forensics, IRR & Breach Readiness
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-37032

CVE-2024-37032: Ollama Path Traversal Vulnerability

CVE-2024-37032 is a path traversal flaw in Ollama that fails to validate digest formats when getting model paths, allowing potential directory traversal attacks. This article covers technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2024-37032 Overview

CVE-2024-37032 is a path traversal vulnerability affecting Ollama, the popular open-source framework for running large language models (LLMs) locally. The vulnerability exists in versions prior to 0.1.34 where Ollama fails to validate the format of the digest parameter when resolving model paths. Specifically, the application does not properly verify that digest values conform to the expected SHA256 format (64 hexadecimal digits), enabling attackers to craft malicious digest values containing path traversal sequences such as ../ to escape intended directories.

Critical Impact

This path traversal vulnerability can be exploited to achieve remote code execution (RCE) by manipulating file paths to overwrite critical system files or plant malicious executables on the target system.

Affected Products

  • Ollama versions prior to 0.1.34
  • All platforms running vulnerable Ollama instances (Linux, macOS, Windows)
  • Systems with Ollama API endpoints exposed to untrusted networks

Discovery Timeline

  • 2024-05-31 - CVE-2024-37032 published to NVD
  • 2025-05-01 - Last updated in NVD database

Technical Details for CVE-2024-37032

Vulnerability Analysis

The vulnerability resides in Ollama's model path resolution logic. When processing model requests, Ollama uses a digest parameter to locate model files on the filesystem. The digest is expected to be a valid SHA256 hash consisting of exactly 64 hexadecimal characters. However, vulnerable versions do not validate this format constraint, allowing attackers to supply malformed digest values.

The test cases in the source code explicitly document the vulnerable conditions: digests with fewer than 64 hex digits, more than 64 hex digits, or those containing directory traversal sequences like ../ at the beginning of the string are not properly rejected. This allows an attacker to manipulate the resolved file path and access or overwrite files outside the intended model directory.

Given Ollama's architecture as an AI model server typically running with elevated permissions to manage model files and GPU resources, successful exploitation can lead to arbitrary file write capabilities, which can be chained to achieve full remote code execution on the host system.

Root Cause

The root cause of CVE-2024-37032 is insufficient input validation in the GetBlobsPath function. The function accepts user-controlled digest values without verifying that they:

  1. Consist only of hexadecimal characters (0-9, a-f)
  2. Are exactly 64 characters in length (SHA256 hash length)
  3. Do not contain path traversal sequences (../, ..\\)

This missing validation allows directory traversal attacks where malicious digest values can redirect file operations to arbitrary filesystem locations.

Attack Vector

The attack can be executed remotely over the network by an authenticated user with access to the Ollama API. The attacker crafts a malicious request containing a digest value with path traversal sequences. When Ollama processes this request, the unvalidated digest is concatenated with the base model path, allowing the attacker to:

  1. Read sensitive files from the filesystem by traversing to system directories
  2. Write malicious content to arbitrary locations by abusing model download/update functionality
  3. Achieve remote code execution by overwriting configuration files, cron jobs, or executable files

The exploitation requires low privileges and no user interaction, making it particularly dangerous for Ollama deployments exposed to untrusted networks.

Detection Methods for CVE-2024-37032

Indicators of Compromise

  • Unusual model pull requests containing ../ sequences in digest parameters
  • Unexpected file modifications outside of Ollama's model storage directories
  • Ollama API access logs showing malformed SHA256 digest values (non-hex characters, incorrect length)
  • New or modified files in system directories that coincide with Ollama API activity

Detection Strategies

  • Monitor Ollama API logs for requests containing path traversal patterns (../, ..\\) in digest or model path parameters
  • Implement Web Application Firewall (WAF) rules to detect and block path traversal sequences in requests to Ollama endpoints
  • Use file integrity monitoring (FIM) on critical system directories to detect unauthorized modifications
  • Deploy network-based intrusion detection signatures for Ollama API path traversal attempts

Monitoring Recommendations

  • Enable verbose logging on Ollama instances and centralize log collection for security analysis
  • Set up alerts for API requests with digest values that deviate from expected SHA256 format (64 hex characters)
  • Monitor process execution on Ollama hosts for suspicious child processes spawned after API requests
  • Review Ollama access patterns for unusual request volumes or sources attempting model operations

How to Mitigate CVE-2024-37032

Immediate Actions Required

  • Upgrade Ollama to version 0.1.34 or later immediately on all affected systems
  • Restrict network access to Ollama API endpoints using firewall rules to limit exposure to trusted networks only
  • Review system logs for evidence of exploitation attempts before patching
  • Conduct file integrity verification on systems that may have been exposed

Patch Information

The vulnerability was addressed in Ollama version 0.1.34. The fix implements proper validation of digest values to ensure they conform to the expected SHA256 format before being used in path operations. The patch specifically adds checks for hexadecimal character validation and length verification, rejecting any digest containing path traversal sequences.

For detailed information about the security fix, refer to the GitHub Pull Request and the version comparison between v0.1.33 and v0.1.34.

Workarounds

  • If immediate patching is not possible, place Ollama behind a reverse proxy that filters requests containing path traversal sequences
  • Restrict Ollama API access to localhost only and use SSH tunneling for remote access
  • Implement application-layer filtering to validate digest parameters before they reach Ollama
  • Consider running Ollama in a containerized environment with read-only filesystem mounts to limit the impact of potential exploitation
bash
# Example: Restrict Ollama to localhost binding only
# Edit Ollama configuration or startup parameters
OLLAMA_HOST=127.0.0.1:11434 ollama serve

# Example: iptables rule to restrict access to Ollama API
iptables -A INPUT -p tcp --dport 11434 -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 11434 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechOllama

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability93.68%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Test Case

  • GitHub Version Comparison

  • GitHub Pull Request

  • Vicarius RCE Vulnerability Analysis
  • Related CVEs
  • CVE-2024-45436: Ollama Path Traversal Vulnerability

  • CVE-2025-15063: Ollama MCP Server RCE Vulnerability

  • CVE-2025-66960: Ollama DoS Vulnerability in GGUF Parser

  • CVE-2025-66959: Ollama GGUF Decoder DoS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • English
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use