CVE-2025-51471: ollama · Session Fixation
Affects ollamaSource CVE Database V5
Not known to be exploited · 18% EPSS · CVSS 6.9 Medium.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 18.5% chance of exploitation in 30 days – higher than 97% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 22 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubollama/ollamapkg:github/ollama/ollamaOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Immediately review and update Ollama to a patched version once available; monitor vendor advisories for official fixes.
- Implement strict validation and sanitization of the realm parameter in WWW-Authenticate headers to prevent injection of malicious values.
- Enforce strict Cross-Origin Resource Sharing (CORS) policies to restrict which domains can receive authentication tokens.
- Employ Content Security Policy (CSP) headers to limit the execution of untrusted scripts that could trigger token leakage.
- Use secure cookie attributes (HttpOnly, Secure, SameSite) to protect session tokens from cross-site attacks.
- Monitor logs and network traffic for unusual authentication token transmissions or access patterns indicative of token theft.
- Educate users about phishing and social engineering risks that could facilitate user interaction required for exploitation.
- Conduct security testing and code reviews focusing on authentication token handling and header processing.
- Consider implementing multi-factor authentication (MFA) to reduce the impact of stolen tokens.
- Segment networks and limit token scope to minimize lateral movement if compromise occurs.
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.