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

- Severity: Medium 6.9 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 19.1%, higher than 97% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-07-22T00:00:00.000Z
- Modified: 2026-09-10T03:50:26.562Z
- Also known as: GHSA-x9hg-5q6g-q3jr, GO-2025-3824, PYSEC-2025-147
- Related: CGA-6crq-pcpr-mxc6
- Weaknesses: CWE-345, CWE-384
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/ollama/ollama (Go): up to 0.9.6; all versions
- ollama ollama: 0.6.7
- ollama (PyPI): up to 0.6.7-NA

## Every score

- CISA-ADP: CVSS:3.1 6.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 6.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N`

## References

- <https://github.com/ollama/ollama/pull/10750> (exploit, fix, issue-tracking, report, web)
- <https://www.gecko.security/blog/cve-2025-51471> (exploit, evidence, third-party-advisory, web)
- <https://github.com/ollama/ollama> (package, product)
- <https://huntr.com/bounties/94eea285-fd65-4e01-a035-f533575ebdc2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-51471> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/ollama/PYSEC-2025-147.yaml> (web)
- <https://github.com/advisories/GHSA-x9hg-5q6g-q3jr> (advisory)

## Sources

- CVE List: [CVE-2025-51471](https://www.cve.org/CVERecord?id=CVE-2025-51471), CVE Terms of Use, modified 2025-10-17
- GitHub Advisory Database: [GHSA-x9hg-5q6g-q3jr](https://github.com/advisories/GHSA-x9hg-5q6g-q3jr), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3824](https://pkg.go.dev/vuln/GO-2025-3824), CC-BY-4.0, modified 2026-06-10
- NVD: [CVE-2025-51471](https://nvd.nist.gov/vuln/detail/CVE-2025-51471), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-147](https://osv.dev/vulnerability/PYSEC-2025-147), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2025-51471 · Whole record: https://cve.day/CVE-2025-51471.json · Rebuilt by cve.day 2026-11-25T22:59:01.579Z
