Improper Validation of Array Index Affecting ollama package, versions <0.5.12-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.14% (35th 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-MINIMOSLATEST-OLLAMA-13313421
  • published6 Oct 2025
  • disclosed16 May 2025

Introduced: 16 May 2025

CVE-2025-1975  (opens in a new tab)
CWE-129  (opens in a new tab)

How to fix?

Upgrade Minimos:latest ollama to version 0.5.12-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ollama package and not the ollama package as distributed by Minimos. See How to fix? for Minimos:latest relevant fixed versions and status.

A vulnerability in the Ollama server version 0.5.11 allows a malicious user to cause a Denial of Service (DoS) attack by customizing the manifest content and spoofing a service. This is due to improper validation of array index access when downloading a model via the /api/pull endpoint, which can lead to a server crash.