Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2025-51471

CVE-2025-51471: Ollama Auth Bypass Vulnerability

CVE-2025-51471 is an authentication bypass flaw in Ollama 0.6.7 that allows attackers to steal tokens via malicious WWW-Authenticate headers. This post covers the technical details, affected versions, impact, and mitigation.

Published: April 14, 2026

CVE-2025-51471 Overview

CVE-2025-51471 is a Cross-Domain Token Exposure vulnerability affecting Ollama version 0.6.7. The vulnerability exists in server.auth.getAuthorizationToken and allows remote attackers to steal authentication tokens and bypass access controls via a malicious realm value in a WWW-Authenticate header returned by the /api/pull endpoint.

Critical Impact

Attackers can exfiltrate authentication tokens to attacker-controlled domains, enabling unauthorized access to protected resources and bypass of access controls in Ollama deployments.

Affected Products

  • Ollama 0.6.7

Discovery Timeline

  • 2025-07-22 - CVE-2025-51471 published to NVD
  • 2025-10-17 - Last updated in NVD database

Technical Details for CVE-2025-51471

Vulnerability Analysis

This vulnerability is classified under CWE-345 (Insufficient Verification of Data Authenticity). The flaw exists in how Ollama handles the WWW-Authenticate header during the /api/pull operation. When Ollama receives an authentication challenge, it extracts the realm value from the WWW-Authenticate header and uses it to determine where to send authentication tokens. However, the application fails to properly validate that the realm value belongs to a trusted domain.

This insufficient verification allows an attacker to craft a malicious response with a WWW-Authenticate header containing an attacker-controlled realm. When Ollama processes this response, it will send authentication tokens to the malicious domain, effectively leaking sensitive credentials to the attacker.

The attack requires user interaction and network access, with a changed scope that allows the vulnerability to impact resources beyond its original security scope—specifically enabling token theft that can compromise confidentiality of the broader system.

Root Cause

The root cause of this vulnerability is insufficient validation of the realm parameter in the WWW-Authenticate header within the server.auth.getAuthorizationToken function. The application does not verify that the realm URL belongs to a trusted or expected domain before sending authentication credentials, violating the principle of data authenticity verification.

Attack Vector

The attack is network-based and requires user interaction. An attacker can exploit this vulnerability by:

  1. Setting up a malicious server that responds with a crafted WWW-Authenticate header containing an attacker-controlled realm URL
  2. Tricking a user into making an /api/pull request that routes through or to the malicious server
  3. When Ollama receives the malicious WWW-Authenticate challenge, it extracts the attacker's realm and sends authentication tokens to the attacker-controlled domain
  4. The attacker captures the stolen tokens and can use them to bypass access controls

The vulnerability mechanism involves improper handling of HTTP authentication headers. When the /api/pull endpoint encounters an authentication challenge, the getAuthorizationToken function parses the WWW-Authenticate header and uses the realm value without validating its origin. This allows cross-domain token leakage when an attacker can influence the authentication response. For detailed technical analysis, see the Huntr Bounty Report and the Gecko Security Blog CVE Analysis.

Detection Methods for CVE-2025-51471

Indicators of Compromise

  • Outbound network connections from Ollama to unexpected or unknown external domains during pull operations
  • Authentication tokens or credentials appearing in network traffic to non-standard registry endpoints
  • Unusual WWW-Authenticate headers in HTTP responses with realm values pointing to unfamiliar domains
  • Log entries showing authentication attempts to external URLs not associated with legitimate model registries

Detection Strategies

  • Monitor network traffic from Ollama instances for connections to suspicious or unknown domains
  • Implement web application firewall (WAF) rules to inspect WWW-Authenticate headers for anomalous realm values
  • Configure logging to capture all authentication-related events in Ollama deployments
  • Use SentinelOne Singularity to detect anomalous outbound connections and credential exfiltration patterns

Monitoring Recommendations

  • Deploy network monitoring solutions to track all outbound connections from systems running Ollama
  • Enable detailed logging for HTTP headers, particularly focusing on authentication-related headers
  • Set up alerts for authentication token transmissions to domains outside an approved allowlist
  • Regularly audit Ollama deployment configurations and network egress rules

How to Mitigate CVE-2025-51471

Immediate Actions Required

  • Upgrade Ollama to a patched version that addresses this vulnerability
  • Review network logs for any suspicious outbound connections that may indicate prior exploitation
  • Implement network segmentation to restrict Ollama's ability to communicate with arbitrary external domains
  • Rotate any authentication tokens that may have been exposed if exploitation is suspected

Patch Information

The fix for this vulnerability is tracked in GitHub Pull Request #10750. Users should update to a version of Ollama that incorporates this fix. The patch implements proper validation of realm values in WWW-Authenticate headers to ensure authentication tokens are only sent to trusted domains.

Workarounds

  • Configure network-level controls (firewall rules, proxy settings) to restrict outbound connections from Ollama to only known, trusted registry domains
  • Use network monitoring tools to alert on any authentication traffic to unexpected destinations
  • Deploy Ollama in an isolated network environment with strict egress filtering
  • Consider implementing a proxy that validates WWW-Authenticate headers before forwarding responses to Ollama
bash
# Example: Restrict Ollama network access using iptables (Linux)
# Only allow connections to trusted model registry domains
iptables -A OUTPUT -p tcp -m owner --uid-owner ollama -d registry.ollama.ai -j ACCEPT
iptables -A OUTPUT -p tcp -m owner --uid-owner ollama --dport 443 -j DROP

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechOllama

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-345
  • Technical References
  • GitHub Project Repository

  • GitHub Pull Request #10750

  • Huntr Bounty Report

  • Gecko Security Blog CVE Analysis
  • Related CVEs
  • CVE-2025-63389: Ollama Auth Bypass Vulnerability

  • CVE-2026-5530: Ollama Model Pull API SSRF Vulnerability

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

  • CVE-2025-66960: Ollama DoS Vulnerability in GGUF Parser
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