CVE-2025-51471 in Ollama
Cross-Domain Token Exposure in server.auth.getAuthorizationToken in Ollama 0.6.7 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.
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, no authentication required, requires user interaction, can impact systems beyond the vulnerable component, full confidentiality impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Ollama | Ollama | 0.6.7 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
Cross-Domain Token Exposure in server.auth.getAuthorizationToken in Ollama 0.6.7 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-51471 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-037658-M |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N |
| Published | 2025-07-22 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-345: CWE-345
CWE-384: CWE-384
Related attack patterns (CAPEC)
CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies via CWE-384
CAPEC-59 Session Credential Falsification through Prediction via CWE-384
CAPEC-60 Reusing Session IDs (aka Session Replay) via CWE-384
CAPEC-61 Session Fixation via CWE-384
CAPEC-142 DNS Cache Poisoning via CWE-345
Show all 19
CAPEC-218 Spoofing of UDDI/ebXML Messages via CWE-345
CAPEC-385 Transaction or Event Tampering via Application API Manipulation via CWE-345
CAPEC-387 Navigation Remapping To Propagate Malicious Content via CWE-345
CAPEC-388 Application API Button Hijacking via CWE-345
CAPEC-665 Exploitation of Thunderbolt Protection Flaws via CWE-345
CAPEC-39 Manipulating Opaque Client-based Data Tokens via CWE-384
CAPEC-111 JSON Hijacking (aka JavaScript Hijacking) via CWE-345
CAPEC-141 Cache Poisoning via CWE-345
CAPEC-196 Session Credential Falsification through Forging via CWE-384
CAPEC-384 Application API Message Manipulation via Man-in-the-Middle via CWE-345
CAPEC-386 Application API Navigation Remapping via CWE-345
CAPEC-701 Browser in the Middle (BiTM) via CWE-345
CAPEC-21 Exploitation of Trusted Identifiers via CWE-384
CAPEC-148 Content Spoofing via CWE-345
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A cross-domain token exposure vulnerability in Ollama 0.6.7 allows remote attackers to steal authentication tokens and bypass access controls by exploiting a malicious realm value in a WWW-Authenticate header returned by the /api/pull endpoint.
The vulnerability occurs in the server.auth.getAuthorizationToken function where a malicious realm value in the WWW-Authenticate header can be used to trick the client into sending authentication tokens to an unauthorized domain, leading to unauthorized access.
Questions
What is CVE-2025-51471?
A cross-domain token exposure vulnerability in Ollama 0.6.7 allows remote attackers to steal authentication tokens and bypass access controls by exploiting a malicious realm value in a WWW-Authenticate header returned by the /api/pull endpoint.
What is the CVSS score for CVE-2025-51471?
CVE-2025-51471 has CVSS 6.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N. EPSS: 0.7%.
Is CVE-2025-51471 actively exploited?
No confirmed active exploitation of CVE-2025-51471 as of 2026-09-25.
How do I remediate CVE-2025-51471?
Priority: HIGH.
What systems are affected by CVE-2025-51471?
CVE-2025-51471 affects Ollama Ollama.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Ollama","product":"Ollama","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.