| 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 | ollama = 0.6.7 |
| Fixed in | see the vendor advisory |
| Weakness | CWE-345CWE-384 |
| CISA KEV | not listed |
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
- NVD lists no fixed version 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.
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
Read more
Other Ollama CVEs
A vulnerability has been found in Ollama up to 0.34.1. The affected element is the function IsValid of the file types/model/name.go of the c...
Ollama is vulnerable to path traversal in the `/api/pull` endpoint due to insufficient validation of layer digests by the `digestToPath` fun...
Ollama versions 0.14.0 before 0.31.2 contain an incorrect authorization vulnerability in the experimental agent mode Bash tool approval mech...
A vulnerability was found in Ollama up to 0.31.1. This issue affects the function readGGUFV1String of the file fs/ggml/gguf.go of the compon...
Ollama fails to validate redirect destinations when pulling tensor-layer models, allowing unauthenticated attackers to redirect blob downloa...
A flaw has been found in NightTrek Ollama-mcp up to 80cf2e17cfc144963a475b619093a2d13c13dbc9. This affects an unknown part of the file src/i...