CybersecurityLLMSelf-hostingInfrastructure

47,000 Exposed Ollama Servers: Yours May Be Doing Someone Else's Work

By the Sec & Cloud editorial teamPublished on 2 min read

47,000 Exposed Ollama Servers: Yours May Be Doing Someone Else's Work

A research tweet made the rounds this week: Shodan supposedly indexes more than 47,000 publicly exposed Ollama instances. In practice, that means local LLM servers wide open on port 11434, with no authentication, reachable from anywhere on the internet.

The number generates the headlines, but it deserves context. What matters isn't its precision — it's how long the problem has persisted.

The exact count is not the signal

The 47,000 estimate is loose by design: Shodan counts every instance fingerprinted as Ollama, not every one that is actually exploitable. Earlier, more rigorous studies landed on much smaller figures: 1,139 confirmed vulnerable instances in a Cisco study, 545 or more in a GitHub report.

The real signal is the trend: the problem has existed since 2024 and isn't shrinking. Every wave of interest in local LLMs pushes a fresh fleet of misconfigured servers onto the open internet.

How Ollama servers end up exposed

By default, Ollama does the right thing: the server listens on 127.0.0.1. Exposure almost always traces back to an OLLAMA_HOST=0.0.0.0 set as a quick fix — in a Docker Compose file, in a cloud deployment guide — and never rolled back.

An open instance enables several attack scenarios:

  • Remote prompt injection: anyone can send requests to the model and steer its context.
  • GPU time theft: your compute runs inference for strangers.
  • Reconnaissance: your list of installed models is readable, which often reveals internal activity.
  • Denial of service: depending on the version, GGUF parsing is exploitable (CVE-2025-66959 and CVE-2025-66960, scored 7.5/10).

Hardening takes four minutes

None of these measures are exotic:

  1. Keep 127.0.0.1 as the default. If the server must be reachable on the network, put it behind a reverse proxy with authentication.
  2. Configure the firewall so port 11434 is never reachable from outside.
  3. Update the Ollama binary regularly — the GGUF parsing CVEs are fixed release by release.

The hardest part isn't technical: it's finding the instances nobody admits to having installed.

Scan your own LAN

A quick nmap across your internal address range, thirty seconds, tells you whether a colleague has "shared" their test instance. Most organizations that run this scan don't get zero back.

The paradox stands: the person who exposes their Ollama to the internet usually believes they're doing private self-hosting. They're doing public self-hosting without knowing it.

Sources