{"schemaVersion":3,"id":"CVE-2025-51471","aliases":["PYSEC-2025-147","GHSA-x9hg-5q6g-q3jr","GO-2025-3824","CGA-32v3-h56r-65p9","CGA-96qx-pp2v-q7hm","CGA-97w3-jh2w-hm4m","CGA-c847-r7w7-frvr","CGA-jrcx-fffc-h246","CGA-q5vw-pw22-7969","CGA-jw8c-rpmm-743x","CGA-wmqx-ph2x-jvj4"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-07-22T00:00:00.000Z","modified":"2025-10-17T17:49:49.480Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.9,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":6.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N","exploitability":4.1,"impact":7.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":6.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N","exploitability":4.1,"impact":7.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":6.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N","exploitability":4.1,"impact":7.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":6.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N","exploitability":4.1,"impact":7.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.13916,"percentile":0.96509,"severity":"medium","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.3140000000000004,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.1423},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.1423,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.1423,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.1423,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.1423,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.1423,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.1423,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.1423,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.13916,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.13916,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.13916,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.13916,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.13916,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.13916,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.13916,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.13916,"percentile":0.96509}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.1423,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.1423,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.15248,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.13916,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.13916,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.13916,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.13916,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.13916,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.13916,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.13916,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.13916,"percentile":0.96509}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_OLLAMA_OLLAMA","name":"Ollama","source":"github","url":"https://github.com/ollama/ollama/issues/17033","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_DA9BFD0C8D3E5669","name":"Exploit Reference (gecko.security)","source":"reference","url":"https://www.gecko.security/blog/cve-2025-51471","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity","description":"The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/345.html"},{"id":"CWE-384","name":"Session Fixation","description":"Authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions.","type":"weakness","status":"Incomplete","abstraction":"Compound","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/384.html"}],"affected":[{"vendor":"chainguard","product":"k8sgpt","name":"k8sgpt","label":"k8sgpt","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/k8sgpt","purlType":"apk","versions":[{"text":"< 0.4.28-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.4.28-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"mods","name":"mods","label":"mods","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/mods","purlType":"apk","versions":[{"text":"< 1.8.1-r12","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.8.1-r12","eol":null,"hubHref":null},{"vendor":"chainguard","product":"ollama","name":"ollama","label":"ollama","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/ollama","purlType":"apk","versions":[{"text":"< 0.12.10-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.12.10-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"ollama-fips","name":"ollama-fips","label":"ollama-fips","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/ollama-fips","purlType":"apk","versions":[{"text":"< 0.12.10-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.12.10-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"k8sgpt","name":"k8sgpt","label":"k8sgpt","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/k8sgpt","purlType":"apk","versions":[{"text":"< 0.4.28-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.4.28-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"mods","name":"mods","label":"mods","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/mods","purlType":"apk","versions":[{"text":"< 1.8.1-r12","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.8.1-r12","eol":null,"hubHref":null},{"vendor":"wolfi","product":"ollama","name":"ollama","label":"ollama","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/ollama","purlType":"apk","versions":[{"text":"< 0.12.10-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.12.10-r0","eol":null,"hubHref":null},{"vendor":"github.com/ollama","product":"ollama","name":"github.com/ollama/ollama","label":"ollama","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/ollama/ollama","purlType":"golang","versions":[{"text":"≤ 0.9.6","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"≤ 0.9.6 | All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ollama","product":"ollama","name":"ollama","label":"ollama","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"0.6.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"0.6.7","eol":null,"hubHref":"/vendor/ollama/ollama"},{"vendor":"PyPI","product":"ollama","name":"ollama","label":"ollama","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/ollama","purlType":"pypi","versions":[{"text":"≤ 0.6.7-NA","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 0.6.7-NA","eol":null,"hubHref":null}],"affectedCount":10,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/ollama/ollama","label":"github.com/ollama/ollama","hostname":"github.com","tags":["PACKAGE","Product"]},{"url":"https://github.com/ollama/ollama/pull/10750","label":"github.com/ollama/ollama/pull/10750","hostname":"github.com","tags":["REPORT","FIX","WEB","Exploit","Issue Tracking"]},{"url":"https://www.gecko.security/blog/cve-2025-51471","label":"www.gecko.security/blog/cve-2025-51471","hostname":"www.gecko.security","tags":["EVIDENCE","ARTICLE","WEB","Exploit","Third Party Advisory"]},{"url":"https://huntr.com/bounties/94eea285-fd65-4e01-a035-f533575ebdc2","label":"huntr.com/bounties/94eea285-fd65-4e01-a035-f533575ebdc2","hostname":"huntr.com","tags":["WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/51xxx/CVE-2025-51471.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/51xxx/CVE-2025-51471.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-51471","label":"nvd.nist.gov/vuln/detail/CVE-2025-51471","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/ollama/PYSEC-2025-147.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/ollama/PYSEC-2025-147.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-x9hg-5q6g-q3jr","label":"github.com/advisories/GHSA-x9hg-5q6g-q3jr","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2025:15405-1"],"duplicates":[],"related":["CGA-6CRQ-PCPR-MXC6","OPENSUSE-SU-2025:15405-1"]},"timeline":[{"kind":"published","date":"2025-07-22T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-10-17T17:49:49.480Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":40,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T23:50:15.976Z","stale":false,"partial":false}}