CVE-2025-51471 Ollama vulnerable to Cross-Domain Token Exposure
MediumCVSS 6.9
EPSS 0.74%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
3 packages: 1 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ollama(Go) | <= 0.9.6; All versions | after 0.9.6 | Partially fixed |
| pypi ollama(PyPI) | <= 0.6.7-NA | after 0.6.7-NA | Fixed |
| ollama | = 0.6.7 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi ollama(PyPI) | <= 0.6.7-NA | No fix listed |
| ollama(Go) | <= 0.9.6 | No fix listed |
| ollama(Go) | All versions | No fix listed |
| ollama | = 0.6.7 | No fix listed |
References
- huntr.com exploit
- github.com exploit issue-tracking patch
- github.com product
- www.gecko.security exploit third-party-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com vendor-advisory