Local model security

Is Ollama safe on company laptops?

Yes, as installed. The Ollama app listens only on the laptop and runs models on the device. The risk starts when someone exposes its port, since the local API has no authentication, when an old version keeps running, or when it loads a model file nobody checked. Security teams rarely see any of it.

Certiv finds Ollama on every company laptop, flags modified models, and checks each AI agent action against company policy before it runs.

In short

Ollama security means controlling a local model runner on employee laptops: who runs it, which model files it loads, what company data reaches it, and what AI agents do with its answers. This page covers the four ways in, the published Ollama vulnerabilities, and the controls to set.

Four ways in to Ollama on one laptop

Ollama serves an HTTP API on 127.0.0.1:11434. Two things reach it from outside the laptop and two from inside. When it stays on 127.0.0.1 and runs local models, the model download is the only traffic that crosses the network edge.

The local API has no authentication

Ollama’s documentation says the local API does not require authentication. The default bind to 127.0.0.1 is the only boundary, and the official Docker image drops it by listening on 0.0.0.0. Set OLLAMA_HOST=0.0.0.0 to reach it from another machine, and anyone on the same office or café network can list models, pull new ones, and send prompts. Internet scans keep finding these servers: Cisco Talos found 1,139 in 2025, and 214 answered prompts with no credentials.

Web pages can send requests to localhost

The browser runs on the same laptop. By default Ollama accepts requests from any localhost origin, and CVE-2024-28224 let an ordinary website use DNS rebinding to call the whole API. That bug is fixed. The exposure remains: any local tool or page that OLLAMA_ORIGINS trusts can drive the runner.

Model files are input from strangers

ollama run hf.co/user/repo runs any public GGUF file on Hugging Face, with the chat template its author wrote. Pillar Security showed that a template can hide a backdoor while the weights stay clean. Ollama also parses each file it loads, and crafted files have crashed it and leaked its memory. Some files are abliterated models, edited so they no longer refuse harmful requests.

Company data goes into prompts nobody records

Employees paste code, contracts, and customer records into a local model because it feels private. It is private from the vendor, and from security too. Ollama does not see local prompts, logs no prompt text at its default level, and keeps no audit log. Firewalls, web proxies, DLP, and AI gateways watch traffic that crosses the network. Ollama on a laptop is unmanaged inference: local and open-weight models running outside IT’s view, where no network or cloud control sees the prompt, the output, or the action an AI agent takes next.

Ollama vulnerabilities, 2024 to 2026

Each one is fixed in a later release. All four started with a web request or a model file that Ollama trusted without checking.

  1. Apr 2024

    A website could take over the local API

    CVE-2024-28224 DNS rebinding · NCC Group · fixed in 0.1.29

    A web page the employee opened could rebind its own domain to 127.0.0.1 and then call every Ollama API: list, pull, and delete models, and send prompts.

  2. Jun 2024

    Pulling a model could run code on the server

    CVE-2024-37032 Probllama · Wiz Research · fixed in 0.1.34

    A malicious registry could answer /api/pull with a path that wrote files anywhere on disk. Wiz turned the file write into remote code execution.

  3. Oct 2024

    A malformed model file crashed the server

    CVE-2024-39720 Oligo Security · fixed in 0.1.46

    One crafted GGUF file stopped Ollama. In the same report, /api/push could reveal which files exist on the machine (CVE-2024-39722).

  4. May 2026

    A model file could leak the server’s memory

    CVE-2026-7482 Bleeding Llama · Cyera · fixed in 0.17.1

    A crafted GGUF file made Ollama read past a buffer and return process memory, which can hold environment variables, API keys, and other users’ prompts. No authentication was needed.

How to see and control Ollama on company laptops

The Ollama column is what to set on every laptop that runs it. The Certiv column is what Certiv adds across the fleet: where Ollama runs, what it loads, and what AI agents do with its answers.

Control In Ollama With Certiv
Visibility
Know where Ollama runs Ollama has no fleet view. Software inventory finds the installed app, not a copy in a home folder or a container. Finds Ollama and other local model runners, such as LM Studio and llama.cpp, on every endpoint where Certiv Scout runs.
Know which apps send it prompts The access log records the method, path, and client address of each request. It does not name the app or the person. Names each app and AI agent that sends requests to a local model runner on the device.
Network
Keep the API off the network Leave OLLAMA_HOST at its default, 127.0.0.1:11434. For remote use, put a reverse proxy that requires authentication in front, and block inbound port 11434 at the host firewall. Reports the address and port each runner listens on, so a runner open to the network stands out.
Limit which web pages can call it Add origins to OLLAMA_ORIGINS only when a tool needs them. The default already allows localhost origins on any port. Names every app that calls Ollama, browsers included, so an unexpected caller stands out.
Stop it reaching the internet Set OLLAMA_NO_CLOUD=1 to turn off cloud models. Block model downloads at your web proxy to stop new pulls. Applies the company’s model policy to the models Ollama runs, so unapproved models, local or cloud, are flagged or blocked.
Models
Control which models run The local server has no model allowlist, user accounts, or roles. Any process on the laptop can pull and load any model. Inventories the model files on each device, checks where each came from against the Ollama library and Hugging Face, and flags files modified to remove refusals.
Data and actions
See what data reaches it At the default log level, Ollama does not record prompt text, and the local server has no audit log. When an admin turns on local model capture, records the requests apps send to the runner on the device.
Control what agents do with its output Ollama returns tool calls to the app that asked. What runs next is up to that app. Checks each tool call an AI agent makes against company policy before it runs, then allows it, steers it, pauses it for a person, or blocks it.
Keep Ollama current Update through your software management. Every vulnerability on this page is fixed in a later version. Shows the Ollama version on every laptop, so outdated copies stand out.

Certiv brings AI Agent Assurance to the laptop: every AI agent action is checked against company policy before it runs, whether the model is hosted or local.

FAQ

Ollama security questions

Expand to view common questions.

Is Ollama safe?
Yes, as installed. The Ollama app listens only on 127.0.0.1 and runs models on the device. The official Docker image listens on every interface. It becomes unsafe when its port is exposed, since the local API has no authentication, when an old version with published vulnerabilities is running, or when it loads a model file nobody checked.
Is Ollama safe to run locally?
Yes, with three conditions: keep OLLAMA_HOST on 127.0.0.1, keep Ollama current, and pull models only from publishers you trust. On a company laptop, add a fourth: security needs to see that it runs and what it loads.
Is Ollama safe to download?
The app from ollama.com or the ollama/ollama GitHub releases is open source under the MIT license. The risk comes later, from the model files it downloads. The command ollama run hf.co/user/repo runs any public GGUF file on Hugging Face, along with the chat template its author supplies.
Does Ollama send my data anywhere?
Not with local models. Ollama’s FAQ says it does not see prompts or data sent to a model running on your machine. Cloud models run on Ollama’s servers, so those prompts leave the device. Set OLLAMA_NO_CLOUD=1 to turn cloud models off.
What are the security risks of Ollama?
Four: a local API with no authentication that is easy to expose, web pages that can send requests to localhost, model files from unknown publishers that Ollama parses and runs, and company data in prompts that no security tool records.
Does Ollama have authentication?
Not on the local server. Ollama’s documentation says the local API at localhost:11434 does not require authentication. API keys apply to Ollama’s cloud API. For remote access, put a reverse proxy that requires authentication in front of Ollama.
How do I block Ollama from the internet?
For inbound access, keep OLLAMA_HOST on 127.0.0.1 and block port 11434 at the host firewall. For outbound access, set OLLAMA_NO_CLOUD=1 to turn off cloud models and block model downloads at your web proxy. Models already on disk keep working offline.
Should we block Ollama on company machines?
Blocking it everywhere pushes developers to other local model runners. Find where it runs first, approve the models that meet policy, and block the rest. Certiv Scout finds Ollama on each endpoint, flags modified models, and checks AI agent actions before they run.
Is there an Ollama enterprise version?
Ollama itself is free and MIT-licensed, so companies can use it commercially. Ollama sells cloud plans: in November 2026 ollama.com/pricing listed Pro at $20 a month, Max at $100, Team at $500 in early access, and a custom Enterprise plan with model access controls and budgets. The local server still has no user accounts or audit log.

Let teams run local models. Keep security able to see them.

See every Ollama install, every model it loads, and every AI agent action checked before it runs.

Book a demo