CVE-2025-15514CWE-395

CVE-2025-15514

High · published January 13, 2026

CVSS v3.1
7.5
EPSS
1%
Percentile
51.8
In the wild
Unconfirmed
What it is

⚡ A null pointer dereference is lurking in Ollama's image processing! When it tries to handle invalid image data, it can crash spectacularly — think of it as an overzealous chef tossing out a dish without checking if the ingredients were even good! 🍽️ Imagine a restaurant where the chef skips the quality check on ingredients. If a customer orders a dish with spoiled produce, the whole kitchen might crash with chaos! That's what happens here when Ollama processes a malformed image; it leads to a denial of service, making the whole service unavailable until it's rebooted. An attacker can exploit this by sending corrupt base64 image data to the /api/chat endpoint. This will lead to a segmentation fault, crashing the application and rendering it unavailable for all users. The downtime could severely impact service availability, causing frustration and potential loss of users.

Put simply

Imagine a restaurant where the chef skips the quality check on ingredients. If a customer orders a dish with spoiled produce, the whole kitchen might crash with chaos! That's what happens here when Ollama processes a malformed image; it leads to a denial of service, making the whole service unavailable until it's rebooted. In Ollama versions 0.11.5-rc0 to 0.13.5, when processing base64-encoded image data, the application fails to validate the decoded content. If the input is invalid, the mtmd_helper_bitmap_init_from_buf function returns NULL, which is then dereferenced, leading to a crash.

What to do

An attacker can exploit this by sending corrupt base64 image data to the /api/chat endpoint. This will lead to a segmentation fault, crashing the application and rendering it unavailable for all users. The downtime could severely impact service availability, causing frustration and potential loss of users. To remediate this vulnerability, update to the latest version of Ollama where this issue has been fixed. Ensure proper validation of the decoded data before passing it to any processing functions. Additionally, consider implementing checks that prevent service crashes by handling NULL values safely. You can tackle this! Keep your service running smoothly by following these steps, and you'll be a security hero! 🦸‍♂️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00726 · 51.8th percentile
Weakness
CWE-395 · Use of NullPointerException Catch to Detect NULL Pointer Dereference
Published
2026-01-13T04:15Z
Affected products (8)
ProductVersionsFixed in
ollama/ollama≥ 0.11.6, ≤ 0.13.5
ollama/ollamaall versions
ollama/ollamaall versions
ollama/ollamaall versions
ollama/ollamaall versions
ollama/ollamaall versions
ollama/ollamaall versions
ollama/ollamaall versions
References (7)
EPSS history
Timeline
  • 12 JAN 23:03Z
    Ollama Multi-Modal Model Image Processing NULL Pointer Dereference
    cvelistv5