{"id":"CVE-2025-51471","aliases":["CVE-2025-51471","GHSA-x9hg-5q6g-q3jr","GO-2025-3824","PYSEC-2025-147"],"related":["CGA-6crq-pcpr-mxc6"],"kind":"vulnerability","state":"published","title":"Ollama vulnerable to Cross-Domain Token Exposure","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Ollama vulnerable to Cross-Domain Token Exposure in github.com/ollama/ollama","format":"markdown","source":"go"},{"lang":"es","text":"La exposición de token entre dominios en server.auth.getAuthorizationToken en Ollama 0.6.7 permite a atacantes remotos robar tokens de autenticación y eludir los controles de acceso a través de un valor de reino malicioso en un encabezado WWW-Authenticate devuelto por el endpoint /api/pull.","source":"nvd"}],"published":"2025-07-22T00:00:00.000Z","modified":"2026-09-10T03:50:26.562Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N","score":6.9,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N","score":6.9,"rating":"MEDIUM"}],"cwes":["CWE-345","CWE-384"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.9.6"}],"ecosystem":"Go","package":"github.com/ollama/ollama","purl":"pkg:golang/github.com/ollama/ollama","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/ollama/ollama","purl":"pkg:golang/github.com/ollama/ollama","source":"go"},{"ranges":[{"status":"affected","version":"0.6.7"}],"vendor":"ollama","product":"ollama","cpe":"cpe:2.3:a:ollama:ollama:0.6.7:-:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.6.7-NA"}],"ecosystem":"PyPI","package":"ollama","purl":"pkg:pypi/ollama","source":"pysec"}],"references":[{"url":"https://github.com/ollama/ollama","tags":["package","product"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/ollama/ollama/pull/10750","tags":["exploit","fix","issue-tracking","report","web"],"sources":["cvelist","ghsa","go","nvd","pysec"]},{"url":"https://www.gecko.security/blog/cve-2025-51471","tags":["evidence","exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","go","nvd","pysec"]},{"url":"https://huntr.com/bounties/94eea285-fd65-4e01-a035-f533575ebdc2","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-51471","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/ollama/PYSEC-2025-147.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-x9hg-5q6g-q3jr","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-07-22T18:45:08.352Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-51471","url":"https://www.cve.org/CVERecord?id=CVE-2025-51471","licence":"CVE Terms of Use","modified":"2025-10-17T17:49:49.480Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x9hg-5q6g-q3jr","url":"https://github.com/advisories/GHSA-x9hg-5q6g-q3jr","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:26.562Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3824","url":"https://pkg.go.dev/vuln/GO-2025-3824","licence":"CC-BY-4.0","modified":"2026-06-10T12:11:14.407Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-51471","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-51471","licence":"Public domain","modified":"2026-06-17T09:35:36.927Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2025-147","url":"https://osv.dev/vulnerability/PYSEC-2025-147","licence":"CC-BY-4.0","modified":"2026-06-10T12:00:05.508Z"}],"updatedAt":"2026-11-25T22:59:01.579Z","epss":{"score":0.19148,"percentile":0.97388,"date":"2026-12-01T12:00:22.000Z"}}