Advisories · AI & LLMs
CVE-2026-7482
Critical
CVSS 9.1
Ollama "Bleeding Llama" unauthenticated memory leak
Disclosed 5 May 2026 · Last reviewed 2 Dec 2026
A crafted model file makes Ollama read past a heap buffer and return process memory, including environment variables and API keys. Ollama has no authentication by default, and about 300,000 instances were reachable when it was published.
What happened
The GGUF model loader trusted sizes inside the file during quantization and read beyond the buffer it had allocated.
Affected and patched versions
- Affected
- Ollama before 0.17.1.
- Patched
- Ollama 0.17.1 and later.
How to check your server
Check
ollama --version ss -tlnp | grep 11434
How to fix and harden
- Check the version and the listen address. 127.0.0.1:11434 is local; 0.0.0.0:11434 is public.
- Upgrade Ollama to 0.17.1 or later.
- Set OLLAMA_HOST=127.0.0.1 and restart, so only local apps or a proxy reach it.
- If it was public, rotate any key that was in its environment.
Fix
curl -fsSL https://ollama.com/install.sh | sh sudo systemctl restart ollama
Sources
Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON