Vulnerability · Published Jul 22, 2025 · Assigned by mitre

CVE-2025-51471

Medium 6.9

In plain English

A medium-severity session fixation in the github.com/ollama/ollama package (Go). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 18.5% (higher than 97% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.

Severity (CVSS 3.1)6.9Medium
Exploit odds (30 days)18.5%top 2.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/ollama/ollamano fix listedGHSA-x9hg-5q6g-q3jr
Gogithub.com/ollama/ollamano fix listedGO-2025-3824
PyPIollamano fix listedPYSEC-2025-147

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-384, CWE-345 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N

References