Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/ollama/ollama
  4. ›
  5. CVE-2025-51471

CVE-2025-51471: Ollama vulnerable to Cross-Domain Token Exposure

July 22, 2025

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

  • github.com/advisories/GHSA-x9hg-5q6g-q3jr
  • github.com/ollama/ollama
  • github.com/ollama/ollama/pull/10750
  • nvd.nist.gov/vuln/detail/CVE-2025-51471
  • www.gecko.security/blog/cve-2025-51471

Code Behaviors & Features

Detect and mitigate CVE-2025-51471 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.9.6

Solution

Unfortunately, there is no solution available yet.

Impact 6.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-345: Insufficient Verification of Data Authenticity

Source file

go/github.com/ollama/ollama/CVE-2025-51471.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:26 +0000.