Use of NullPointerException Catch to Detect NULL Pointer Dereference Affecting github.com/ollama/ollama/llama package, versions >=0.11.5-rc0 <0.11.11-rc2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.71% (51st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMOLLAMAOLLAMALLAMA-14927396
  • published14 Jan 2026
  • disclosed12 Jan 2026
  • creditweblover12

Introduced: 12 Jan 2026

CVE-2025-15514  (opens in a new tab)
CWE-395  (opens in a new tab)

How to fix?

Upgrade github.com/ollama/ollama/llama to version 0.11.11-rc2 or higher.

Overview

Affected versions of this package are vulnerable to Use of NullPointerException Catch to Detect NULL Pointer Dereference in the MultimodalTokenize() function that improperly processes NULL from mtmd_helper_bitmap_init_from_buf() function of vendored llama.cpp. An attacker can cause the application to crash and disrupt service availability by sending specially crafted base64-encoded image data that decodes to invalid media, which leads to a segmentation fault when the pointer is dereferenced.

CVSS Base Scores

version 4.0
version 3.1