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-2025-0312

CVE-2025-0312: Ollama DoS Vulnerability via GGUF Model

CVE-2025-0312 is a denial of service vulnerability in Ollama that allows attackers to crash the server using malicious GGUF model files. This article covers the technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-0312 Overview

A null pointer dereference vulnerability exists in Ollama versions 0.3.14 and earlier that allows malicious actors to cause a Denial of Service (DoS) condition. The vulnerability occurs when a specially crafted GGUF model file is uploaded and processed by the Ollama server. Due to insufficient null pointer validation during model file parsing, an attacker can trigger a server crash, disrupting AI inference services for all users.

Critical Impact

Remote attackers can crash Ollama servers by uploading malicious GGUF model files, causing complete service disruption without requiring authentication.

Affected Products

  • Ollama versions <=0.3.14
  • All platforms running vulnerable Ollama server instances
  • Self-hosted Ollama deployments exposed to untrusted model uploads

Discovery Timeline

  • 2025-03-20 - CVE-2025-0312 published to NVD
  • 2025-03-28 - Last updated in NVD database

Technical Details for CVE-2025-0312

Vulnerability Analysis

This vulnerability stems from CWE-476 (NULL Pointer Dereference), a memory corruption flaw that occurs when the application attempts to use a pointer that has a null value. In the context of Ollama, the GGUF model file parser fails to properly validate pointer values before dereferencing them during the model loading process.

When a malicious GGUF file is crafted with specific malformed structures, the parser encounters unexpected null values in data structures that should contain valid memory references. The subsequent attempt to access memory through these null pointers causes the server process to crash immediately. This vulnerability is particularly dangerous because GGUF is the primary model format used by Ollama for loading and running large language models.

The attack requires network access to the Ollama server's API endpoint that handles model uploads or creation. No authentication is required in default configurations, making this vulnerability trivially exploitable in exposed deployments.

Root Cause

The root cause of CVE-2025-0312 lies in insufficient input validation within the GGUF file parsing logic. The vulnerability occurs because:

  1. The GGUF parser does not validate certain pointer values before dereferencing them
  2. Malformed model files can contain structures that result in null pointer assignments
  3. Error handling does not catch null pointer conditions before memory access operations
  4. The server lacks defensive programming patterns such as null checks before pointer dereferencing

This type of vulnerability is common in native code parsers that process complex binary file formats without rigorous bounds and null checking.

Attack Vector

The attack vector is network-based, allowing remote exploitation without user interaction. An attacker exploits this vulnerability through the following sequence:

  1. The attacker crafts a malicious GGUF model file with structures designed to trigger null pointer conditions during parsing
  2. The attacker uploads the malicious model file to the Ollama server using the model creation API
  3. When the server attempts to parse and load the model, it encounters the null pointer
  4. The null pointer dereference causes the Ollama server process to crash
  5. All ongoing inference requests are terminated, and the service becomes unavailable

The attack is reproducible and can be repeated to maintain a persistent denial of service condition. For detailed technical information about this vulnerability, refer to the Huntr Bounty Report.

Detection Methods for CVE-2025-0312

Indicators of Compromise

  • Unexpected Ollama server process crashes or terminations
  • Crash logs showing segmentation faults or null pointer access violations
  • Unusual GGUF model file uploads from untrusted sources
  • Repeated server restart events in system logs

Detection Strategies

  • Monitor Ollama server process health and implement crash alerting
  • Audit model upload requests for anomalous file sizes or patterns
  • Implement rate limiting on model creation API endpoints
  • Review system crash dumps for null pointer dereference signatures

Monitoring Recommendations

  • Enable verbose logging on Ollama server instances to capture detailed error information
  • Configure process monitoring to detect and alert on unexpected service terminations
  • Implement network traffic analysis to identify suspicious model upload patterns
  • Set up log aggregation to correlate crash events with incoming API requests

How to Mitigate CVE-2025-0312

Immediate Actions Required

  • Upgrade Ollama to a version newer than 0.3.14 that contains the security fix
  • Restrict access to model upload/creation API endpoints to trusted users only
  • Implement network segmentation to limit exposure of Ollama servers
  • Enable authentication on Ollama API endpoints if not already configured

Patch Information

Organizations should upgrade to the latest stable version of Ollama that addresses this null pointer dereference vulnerability. Review the official Ollama release notes for security-related updates and ensure all deployments are running patched versions.

For detailed information about this vulnerability and remediation guidance, consult the Huntr Bounty Report.

Workarounds

  • Deploy a reverse proxy with authentication in front of Ollama API endpoints
  • Restrict model upload capabilities to authenticated administrators only
  • Implement input validation on model files before passing them to Ollama
  • Use network firewall rules to limit access to the Ollama server from trusted IP ranges only
bash
# Example: Restrict Ollama API access using iptables
# Allow only specific trusted IP ranges to access Ollama server port
iptables -A INPUT -p tcp --dport 11434 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 11434 -s 192.168.1.0/24 -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
  • TypeDOS

  • Vendor/TechOllama

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.20%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-476
  • Technical References
  • Huntr Bounty Report
  • Related CVEs
  • CVE-2025-66960: Ollama DoS Vulnerability in GGUF Parser

  • CVE-2025-66959: Ollama GGUF Decoder DoS Vulnerability

  • CVE-2025-15514: Ollama Null Pointer Dereference DoS Flaw

  • CVE-2025-1975: Ollama Server 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