Skip to main content
VulnerabilityPublished Updated

CVE-2025-51471: ollama · Session Fixation

Affects ollamaSource CVE Database V5

0

Not known to be exploited · 18% EPSS · CVSS 6.9 Medium.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 3.1 base score
6.9Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 22 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
GitHubollama/ollamapkg:github/ollama/ollamaOther threatsAffected
  • =0.6.7
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Immediately review and update Ollama to a patched version once available; monitor vendor advisories for official fixes.
  2. Implement strict validation and sanitization of the realm parameter in WWW-Authenticate headers to prevent injection of malicious values.
  3. Enforce strict Cross-Origin Resource Sharing (CORS) policies to restrict which domains can receive authentication tokens.
  4. Employ Content Security Policy (CSP) headers to limit the execution of untrusted scripts that could trigger token leakage.
  5. Use secure cookie attributes (HttpOnly, Secure, SameSite) to protect session tokens from cross-site attacks.
  6. Monitor logs and network traffic for unusual authentication token transmissions or access patterns indicative of token theft.
  7. Educate users about phishing and social engineering risks that could facilitate user interaction required for exploitation.
  8. Conduct security testing and code reviews focusing on authentication token handling and header processing.
  9. Consider implementing multi-factor authentication (MFA) to reduce the impact of stolen tokens.
  10. 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.

References

Community reviews

Loading reviews…