The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • 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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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
      DFIR, Breach Readiness, & Compromise Assessments
    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
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • 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-2026-7020

CVE-2026-7020: Ollama Path Traversal Vulnerability

CVE-2026-7020 is a path traversal flaw in Ollama up to version 0.20.2 that affects the digestToPath function. Remote attackers can exploit this to access unauthorized files. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published: April 30, 2026

CVE-2026-7020 Overview

A path traversal vulnerability has been discovered in Ollama versions up to 0.20.2. This security flaw affects the digestToPath function within the file x/imagegen/transfer/transfer.go of the Tensor Model Transfer Handler component. By manipulating the digest argument, an attacker can perform path traversal attacks remotely. The attack is characterized by high complexity and the exploitability is reported as difficult.

Critical Impact

Remote attackers can potentially traverse file system directories through the Tensor Model Transfer Handler, potentially accessing sensitive files or system resources outside the intended directory scope.

Affected Products

  • Ollama versions up to 0.20.2
  • Tensor Model Transfer Handler component (x/imagegen/transfer/transfer.go)

Discovery Timeline

  • 2026-04-26 - CVE-2026-7020 published to NVD
  • 2026-04-29 - Last updated in NVD database

Technical Details for CVE-2026-7020

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as Path Traversal. The flaw exists in the Tensor Model Transfer Handler, specifically within the digestToPath function located in x/imagegen/transfer/transfer.go.

The vulnerability allows remote attackers to manipulate the digest parameter to escape the intended directory structure. By crafting malicious input containing directory traversal sequences (such as ../), an attacker could potentially access files outside the designated model storage directories.

Despite being remotely exploitable, the attack complexity is high, making exploitation difficult in practice. The vendor was contacted early about this disclosure but did not respond.

Root Cause

The root cause of this vulnerability is insufficient input validation and sanitization of the digest argument in the digestToPath function. The function fails to properly validate or canonicalize the path before using it, allowing directory traversal sequences to remain in the path and be processed by file system operations.

Path traversal vulnerabilities typically occur when user-supplied input is used to construct file paths without adequate checks to ensure the resulting path stays within the intended directory boundaries.

Attack Vector

The attack vector is network-based, allowing remote exploitation without authentication. An attacker would need to send a specially crafted request to the Tensor Model Transfer Handler containing a malicious digest value with path traversal sequences.

The technical details of the vulnerability can be found in the VulDB submission. The exploit has been disclosed publicly, though the high attack complexity makes successful exploitation challenging.

Detection Methods for CVE-2026-7020

Indicators of Compromise

  • Unexpected file access attempts outside of model storage directories
  • HTTP requests to the Tensor Model Transfer Handler containing ../ or encoded traversal sequences in the digest parameter
  • Anomalous read operations on sensitive system files from the Ollama process

Detection Strategies

  • Monitor Ollama application logs for path traversal patterns in digest parameters
  • Implement Web Application Firewall (WAF) rules to detect and block requests containing directory traversal sequences
  • Deploy file integrity monitoring on sensitive directories to detect unauthorized access attempts

Monitoring Recommendations

  • Enable detailed logging for the Tensor Model Transfer Handler component
  • Monitor file system access patterns from the Ollama process for attempts to access files outside model directories
  • Implement alerting for any requests containing encoded path traversal sequences (e.g., %2e%2e%2f)

How to Mitigate CVE-2026-7020

Immediate Actions Required

  • Review and restrict network access to the Ollama Tensor Model Transfer Handler endpoint
  • Implement input validation at the network perimeter to reject requests with path traversal patterns
  • Consider deploying the application in a containerized environment with restricted file system access

Patch Information

At the time of disclosure, the vendor had not responded to notification attempts. Users should monitor for security updates from Ollama and upgrade to patched versions when available. Review the VulDB vulnerability entry for the latest status on patches and fixes.

Workarounds

  • Implement a reverse proxy or WAF in front of Ollama that filters requests containing path traversal sequences
  • Restrict file system permissions for the Ollama process to limit the impact of potential exploitation
  • Use network segmentation to limit which systems can access the Tensor Model Transfer Handler endpoint
bash
# Example: Restrict Ollama process file system access using AppArmor profile
# /etc/apparmor.d/ollama
profile ollama /usr/bin/ollama {
  # Allow read access only to model directories
  /var/lib/ollama/models/** r,
  # Deny access to sensitive system directories
  deny /etc/** rw,
  deny /root/** rw,
}

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

  • SeverityLOW

  • CVSS Score2.9

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-22
  • Technical References
  • VulDB Submission #797576

  • VulDB Vulnerability #359599

  • VulDB CTI for #359599
  • Related CVEs
  • CVE-2024-37032: Ollama Path Traversal Vulnerability

  • CVE-2024-45436: Ollama Path Traversal Vulnerability

  • CVE-2026-7482: Ollama Information Disclosure Vulnerability

  • CVE-2026-42249: Ollama for Windows RCE Vulnerability
Default Legacy - Prefooter | 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
  • 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

English