Skip to content
OpenAdvisories
Medium · 6.9 Public exploit CVE-2025-51471 EUVD-2025-22351GHSA-x9hg-5q6g-q3jrGO-2025-3824PYSEC-2025-147

Ollama vulnerable to Cross-Domain Token Exposure

Published Jul 22, 2025 · Updated Oct 17, 2025 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250730T213748-1.1 openSUSE-SU-2025:15405-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling k8sgpt 0.4.28-r0 —
Wolfi rolling mods 1.8.1-r12 —
Wolfi rolling ollama 0.12.10-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • ajtazer/CVE-2025-51471-POC ★ 2 · Dec 24, 2025

    This PoC is for educational and authorized security testing purposes only. Do NOT use against systems you don't own.

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/ollama/ollama <= 0.9.6 — GHSA-x9hg-5q6g-q3jr
Go github.com/ollama/ollama all versions — GO-2025-3824

Advisories 1

References