Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade github.com/ollama/ollama/fs/ggml to version 0.17.1-rc1 or higher.
Affected versions of this package are vulnerable to Out-of-bounds Read in the GGUF model loader. An attacker can access sensitive server memory contents, including environment variables, API keys, system prompts, and concurrent users' conversation data, by submitting a specially crafted GGUF file with manipulated tensor offset and size values to the /api/create endpoint, and subsequently exfiltrating the leaked data via the /api/push endpoint to an attacker-controlled registry. This is only exploitable if the server is exposed to untrusted networks or the endpoints are accessible without authentication.
This vulnerability can be mitigated by binding the service to a trusted interface only (e.g., OLLAMA_HOST=127.0.0.1), fronting the service with a reverse proxy that requires authentication on /api/create and /api/push, and restricting outbound network egress from the host to prevent exfiltration via /api/push.