| Component | Ollama |
| Severity | medium (CVSS 6.9) |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N |
| Published (NVD) | 2025-07-22 |
| Last modified | 2026-06-17 |
| Affected versions | <= 0.9.6 from the GitHub-reviewed advisory GHSA-x9hg-5q6g-q3jr |
| Fixed in | see the vendor advisory |
| Weakness | CWE-345CWE-384 |
| CISA KEV | not listed |
Versions, checked against NVD
NVD's analysis reads = 0.6.7. The ranges above come from the GitHub-reviewed advisory GHSA-x9hg-5q6g-q3jr. The page and the scanner follow it: no more trusted source, and no two sources together, say otherwise (see the methodology).
NVD 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.
What to do
- No fixed release is known yet: follow the vendor advisory below and keep Ollama off the public internet until a fix ships.
- Do not expose the component's API or UI to the internet without authentication in front of it.
- Run Ollama bound to localhost and reach it over a private network rather than an open port. Ollama on a Raspberry Pi 5 · Ollama on a Mac mini M4 · Tailscale for self-hosted AI · Which machine for a 7B model next to an agent · Agent plus local model, the exact setup, €12
Sources
- NVD: CVE-2025-51471
- https://github.com/ollama/ollama/pull/10750
- https://www.gecko.security/blog/cve-2025-51471
- https://github.com/ollama/ollama
- https://huntr.com/bounties/94eea285-fd65-4e01-a035-f533575ebdc2