Ollama, llama.cpp, vLLM and Gradio often run with no login and listen on the network. Bind them to localhost, put an authenticating proxy in front, update often, and only load models from publishers you trust.
3 items · 0 stories · 3 security incidents
Why it happens
Model servers such as Ollama, llama.cpp, vLLM and Gradio were built for a trusted laptop or lab. Many have no login, and one setting change puts them on a public address. Model files can also carry code that runs when they load.
What to check in your own app
Check which address each model server listens on and bind it to localhost or a private network.
Put an authenticating proxy in front of anything that must be reachable remotely.
Update model servers as often as your app dependencies.
Download models only from the original publisher, prefer safetensors, and keep trust_remote_code off.
The advisory says llama.cpp builds b11450 up to b12658 had an out-of-bounds write in the ggml RPC server: an attacker who could reach it, with no login, could learn buffer addresses and send a copy command that writes below the buffer, crashing the server or executing code. The RPC server is used to spread a model across several machines.
The advisory says Gradio 6.27.0 before 6.32.0 trusted requests that looked local, so with SSR mode on, a remote attacker sending a forged Host: localhost header could call run-history endpoints with the operator's saved Hugging Face token to list, read and write buckets in their account. Gradio's fix now uses the visitor's own token.
Rapid7 scanned 20,354 pre-selected hosts on 10 November and found 7,675 Ollama servers answering without authentication. 4,209 of them (54.8%) listed models left by someone else, such as callback addresses and Base64 file paths decoding to /etc/shadow. 79% listed cloud-routed models, which Rapid7 says can let strangers use a signed-in owner's paid ollama.com account.