← All tools
LLM frameworks · Ollama

Ollama

Run open-weight models locally behind an HTTP API.

10Advisories
3critical
6high
1medium
2026-11-20Latest
Ollama CVEs & security

Is Ollama safe?

Ollama runs local LLMs and exposes an HTTP API. Its advisories include missing authentication, path traversal on model pull, DNS rebinding, and agent-mode command approval bypasses, so an exposed Ollama port is high risk.

We track 10 security advisories that affect Ollama: 8 name Ollama directly and 2 are related patterns that show up in apps or workflows built with it. By severity: 3 critical, 6 high and 1 medium. All of them have a CVE ID. The most common kinds are SSRF & network (4) and secret exposure (2). The newest entry is dated 2026-11-20.

Newest entries on this page
Using Ollama safely
  • Upgrade Ollama to the fixed version listed in each advisory. Recent fixes land in 0.35.0, 0.31.2 and 0.17.1 depending on the bug.
  • Do not expose the Ollama API to the internet. Bind it to 127.0.0.1 and put real authentication in front if you need remote access.
  • Avoid session-wide Bash approvals in agent mode; review each command, because ; and && have been used to bypass the prompt.
  • If you use nuxt-ollama, upgrade to 1.3.1 or later and rotate any Ollama cloud API key that was served in rendered pages.
  • Pull a fresh Docker image after upgrading if you run Ollama in a container, so the host is not still on a vulnerable binary.
Timeline · advisories per quarter
12024 Q2
12025 Q4
12026 Q2
22026 Q3
52026 Q4
Named in sources

Reported for Ollama

01. criticalCode executionCVE-2026-103663: Ollama /api/pull path traversal can lead to code execution as rootAn unauthenticated attacker who can reach an Ollama server can use a crafted layer digest in /api/pull to write a file outside the model store. In most Docker images that means a file Ollama loads and runs as root on the next restart. Ollama 2026-10-08 02. criticalBroken access controlCVE-2025-63389: Ollama Platform has missing authentication enabling attackers to perform model management operationsA critical authentication bypass vulnerability exists in Ollama platform's API endpoints in versions prior to and including v0.12.3. The platform exposes multiple API endpoints without requiring authentication, enabling remote attackers to perform unauthorized model management operations. Ollama 2025-12-18 03. highSecret exposureCVE-2026-59158: nuxt-ollama puts your Ollama cloud API key in every server-rendered page, upgrade to 1.3.1The nuxt-ollama module copied all its options, including a configured Ollama cloud api_key, into Nuxt's public runtime config before 1.3.1. Nuxt embeds that config in the window.__NUXT__ payload of every server-rendered page, so anyone who loads a page can read the key and spend your Ollama quota. Ollama 2026-10-27 04. highSSRF & networkCVE-2026-110719: Portkey AI Gateway 1.14.0 through 1.15.2 contains a server-side request forgery vulnerability that allows unauthenticated attackers to reach loopback and DockerPortkey AI Gateway 1.14.0 through 1.15.2 contains a server-side request forgery vulnerability that allows unauthenticated attackers to reach loopback and Docker host services because isValidCustomHost trusts localhost-style hosts when TRUSTED_CUSTOM_HOSTS is unset. Ollama 2026-10-14 05. highSSRF & networkCVE-2026-108836: A vulnerability has been found in Ollama up to 0.34.1. The affected element is the function IsValid of the file types/model/name.go of the component Pull API. TA vulnerability has been found in Ollama up to 0.34.1. The affected element is the function IsValid of the file types/model/name.go of the component Pull API. The manipulation leads to server-side request forgery. It is possible to initiate the attack remotely. Ollama 2026-10-12 06. highAgent hijackingCVE-2026-102697: Ollama agent mode's Bash approval can be bypassed with ; or &&In Ollama's experimental agent mode, approving a Bash command for the session also let through anything chained onto it. A prompt injection could tack extra commands onto an approved one and run them without asking. Ollama 2026-09-29 07. highSecret exposureCVE-2026-7482: Ollama contains a heap out-of-bounds read vulnerability in the GGUF model loaderOllama before 0.17.1 contains a heap out-of-bounds read vulnerability in the GGUF model loader. Ollama 2026-05-04 08. highSSRF & networkCVE-2024-28224: Ollama DNS rebinding vulnerabilityOllama before 0.1.29 has a DNS rebinding vulnerability that can inadvertently allow remote access to the full API, thereby letting an unauthorized user chat with a large language model, delete a model, or cause a denial of service (resource exhaustion). Ollama 2024-04-08
Same pattern

Also worth checking

01. criticalPrompt injectionCVE-2026-61732: web pages can forge operator turns in the Decepticon hacking agent with ChatML tokens and run commands, upgrade to 1.1.17Decepticon, an autonomous red-team hacking agent, put web crawl output into LLM messages without removing ChatML special-token literals before 1.1.17. With a self-hosted OpenAI-compatible backend that keeps those tokens, text planted on a target page can forge a new operator turn, bypass the agent's guardrails and run commands in its Kali sandbox. OpenAI vLLM Ollama 2026-09-24 02. mediumSSRF & networkCVE-2026-133875: one-hub LLM API gateway fetched vision-chat image_url values server-side with no destination checks, letting any non-admin API token reach internal services and cloud metadata (through 0.14.27, no fix yet)one-hub is a popular self-hosted OpenAI-compatible API management and distribution gateway (a fork of one-api). Through 0.14.27, when a vision chat request goes to the Claude, OpenRouter or Ollama providers, GetImageFromUrl in common/image/image.go downloads the image_url server-side to base64-encode it, checking only that the string starts with 'http'. Any holder of an ordinary user API token (self-registration is on by default) can send a /v1/chat/completions request that makes the gateway call internal services or cloud metadata endpoints. The GitHub issue is still open and no fixed release is listed. OpenAI Anthropic Claude Ollama 2026-11-20
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.