Advisories · AI & LLMs
CVE-2024-37032
Critical
CVSS 9.8
Ollama Probllama unauthenticated remote code execution
Disclosed 2024 · Last reviewed 2 Dec 2026
The Ollama API accepted a path that could write outside the intended directory and execute code. A listener on 0.0.0.0:11434 makes that API reachable from the network.
What happened
Insufficient path checks on an unauthenticated API endpoint allowed a file write that the server would later execute.
Affected and patched versions
- Affected
- Ollama before 0.1.34 when the API is reachable beyond localhost.
- Patched
- Ollama 0.1.34 and later.
How to check your server
Check
ollama --version ss -lnt | grep 11434 || netstat -lnt | grep 11434
How to fix and harden
- Upgrade Ollama to 0.1.34 or later.
- Bind the API to 127.0.0.1. A 0.0.0.0:11434 listener is reachable by anyone who can hit that port.
- Put a firewall rule in front of 11434 if the process still binds widely.
- Confirm the socket line shows 127.0.0.1:11434 after the restart.
Fix
ss -lnt | grep 11434 || netstat -lnt | grep 11434
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