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).
Published: 2024-10-31
Score: 8.2 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-95j2-w8x7-hm88 Ollama Out-of-bounds Read
History

Fri, 01 Nov 2024 16:15:00 +0000

Type Values Removed Values Added
First Time appeared Ollama
Ollama ollama
Weaknesses CWE-125
CPEs cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:*
Vendors & Products Ollama
Ollama ollama
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 01 Nov 2024 14:30:00 +0000

Type Values Removed Values Added
References

Fri, 01 Nov 2024 14:00:00 +0000

Type Values Removed Values Added
References

Thu, 31 Oct 2024 19:30:00 +0000

Type Values Removed Values Added
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).
References

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2024-11-01T15:20:12.939Z

Reserved: 2024-06-28T00:00:00.000Z

Link: CVE-2024-39720

cve-icon Vulnrichment

Updated: 2024-11-01T15:20:03.231Z

cve-icon NVD

Status : Analyzed

Published: 2024-10-31T20:15:04.877

Modified: 2025-05-13T13:28:14.270

Link: CVE-2024-39720

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses