CVE-2025-51471
MEDIUM 6.9CVSS 3.1Ollama vulnerable to Cross-Domain Token Exposure
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.
- Published
- 22 Jul 2025
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-345
- Also known as
- GHSA-x9hg-5q6g-q3jrGO-2025-3824PYSEC-2025-147
- Sources
- NVDJSONOSV GHSA-x9hg-5q6g-q3jrJSONOSV GO-2025-3824JSONOSV PYSEC-2025-147JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ollama | ollamacpe:2.3:a:ollama:ollama:0.6.7:-:*:*:*:*:*:* |
= 0.6.7 | |
| OSV | Go | github.com/ollama/ollama | <= 0.9.6 | |
| OSV | Go | github.com/ollama/ollama | all versions | |
| OSV | PyPI | ollama | <= 0.6.7-NA |
References
- https://github.com/ollama/ollama · Product, PACKAGE
- https://github.com/ollama/ollama/pull/10750 · Exploit, Issue Tracking, WEB, FIX, REPORT
- https://huntr.com/bounties/94eea285-fd65-4e01-a035-f533575ebdc2 · WEB
- https://www.gecko.security/blog/cve-2025-51471 · Exploit, Third Party Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2025-51471 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/ollama/PYSEC-2025-147.yaml · WEB
- https://github.com/advisories/GHSA-x9hg-5q6g-q3jr · ADVISORY
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 22 Jul 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 30 Jul 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Jul 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 22 Jul 2025)