Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS05NWoyLXc4eDctaG04OM4ABA2Z
Ollama Out-of-bounds Read
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).
Permalink: https://github.com/advisories/GHSA-95j2-w8x7-hm88JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS05NWoyLXc4eDctaG04OM4ABA2Z
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: 6 days ago
Updated: 2 days ago
CVSS Score: 8.2
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Identifiers: GHSA-95j2-w8x7-hm88, CVE-2024-39720
References:
- https://nvd.nist.gov/vuln/detail/CVE-2024-39720
- https://github.com/ollama/ollama/compare/v0.1.45...v0.1.46#diff-782c2737eecfa83b7cb46a77c8bdaf40023e7067baccd4f806ac5517b4563131L417
- https://oligosecurity.webflow.io/blog/more-models-more-probllms
- https://oligo.security/blog/more-models-more-probllms
- https://github.com/advisories/GHSA-95j2-w8x7-hm88
Blast Radius: 1.0
Affected Packages
go:github.com/ollama/ollama
Dependent packages: 0Dependent repositories: 0
Downloads:
Affected Version Ranges: < 0.1.46
Fixed in: 0.1.46
All affected versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.13, 0.0.14, 0.0.15, 0.0.16, 0.0.17, 0.0.18, 0.0.19, 0.0.20, 0.0.21, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.1.11, 0.1.12, 0.1.13, 0.1.14, 0.1.15, 0.1.16, 0.1.17, 0.1.18, 0.1.19, 0.1.20, 0.1.21, 0.1.22, 0.1.23, 0.1.24, 0.1.25, 0.1.26, 0.1.27, 0.1.28, 0.1.29, 0.1.30, 0.1.31, 0.1.32, 0.1.33, 0.1.34, 0.1.35, 0.1.36, 0.1.37, 0.1.38, 0.1.39, 0.1.40, 0.1.41, 0.1.42
All unaffected versions: