CVE-2025-51471
Ollama Cross-Domain Token Exposure Information Disclosure
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.
INFO
Published Date :
July 22, 2025, 7:15 p.m.
Last Modified :
Oct. 17, 2025, 6:15 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | 134c704f-9b21-4f2e-91b3-4a467353bcc0 |
Solution
- Update Ollama to the latest stable version.
- Review and restrict access to the /api/pull endpoint.
- Validate the 'realm' header for authentication tokens.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-51471.
| URL | Resource |
|---|---|
| https://github.com/ollama/ollama | Product |
| https://github.com/ollama/ollama/pull/10750 | Exploit Issue Tracking |
| https://huntr.com/bounties/94eea285-fd65-4e01-a035-f533575ebdc2 | |
| https://www.gecko.security/blog/cve-2025-51471 | Exploit Third Party Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-51471 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-51471
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-51471 vulnerability anywhere in the article.
-
BleepingComputer
Security firms debate CVE credit in overlapping vulnerability reports
Cybersecurity company FuzzingLabs has accused the Y Combinator-backed startup, Gecko Security, of replicating its vulnerability disclosures and backdating blog posts. According to the company, Gecko f ... Read more
-
BleepingComputer
Security firms dispute credit for overlapping CVE reports
Cybersecurity company FuzzingLabs has accused the Y Combinator-backed startup, Gecko Security, of replicating its vulnerability disclosures and backdating blog posts. According to the company, Gecko f ... Read more
The following table lists the changes that have been made to the
CVE-2025-51471 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
Oct. 17, 2025
Action Type Old Value New Value Added Reference https://huntr.com/bounties/94eea285-fd65-4e01-a035-f533575ebdc2 -
Initial Analysis by [email protected]
Oct. 09, 2025
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:ollama:ollama:0.6.7:-:*:*:*:*:*:* Added Reference Type MITRE: https://github.com/ollama/ollama Types: Product Added Reference Type MITRE: https://github.com/ollama/ollama/pull/10750 Types: Exploit, Issue Tracking Added Reference Type MITRE: https://www.gecko.security/blog/cve-2025-51471 Types: Exploit, Third Party Advisory -
New CVE Received by [email protected]
Jul. 22, 2025
Action Type Old Value New Value Added 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. Added Reference https://github.com/ollama/ollama Added Reference https://github.com/ollama/ollama/pull/10750 Added Reference https://www.gecko.security/blog/cve-2025-51471 -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jul. 22, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N Added CWE CWE-345 Added CWE CWE-384