CVE-2025-51471 Details
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.
A cross-domain token exposure vulnerability has been identified in Ollama version 0.6.7. This issue allows remote attackers to steal authentication tokens and bypass access controls by exploiting the model pulling mechanism. When a model is requested from a server that responds with a 401 Unauthorized status, Ollama incorrectly follows the WWW-Authenticate header's realm URL without verifying if it originates from the same domain as the initial request. This flaw enables attackers to redirect the authentication flow to a malicious domain, capture valid authentication tokens, and potentially access or manipulate private models on behalf of the victim.
Users can update to Ollama version 0.9.6, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ollama/ollama | [email protected] | Product |
| https://github.com/ollama/ollama/pull/10750 | [email protected] | ExploitIssue Tracking |
| https://huntr.com/bounties/94eea285-fd65-4e01-a035-f533575ebdc2 | [email protected] | |
| https://www.gecko.security/blog/cve-2025-51471 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-345 | Insufficient Verification of Data Authenticity | CISA-ADP |
| CWE-384 | Session Fixation | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| ollama ollama | 0.6.7 - |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 17, 2025 | CVE Modified | [email protected] |
| Oct 9, 2025 | Initial Analysis | [email protected] |
| Jul 22, 2025 | New CVE Received | [email protected] |
| Jul 22, 2025 | CVE Modified | CISA-ADP |