An issue was discovered in Ollama before 0.1.34. The CreateModelHandler function uses os.Open to read a file until completion. The req.Path parameter is user-controlled and can be set to /dev/random, which is blocking, causing the goroutine to run infinitely (even after the HTTP request is aborted by the client).
History

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

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

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/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.34. The CreateModelHandler function uses os.Open to read a file until completion. The req.Path parameter is user-controlled and can be set to /dev/random, which is blocking, causing the goroutine to run infinitely (even after the HTTP request is aborted by the client).
References

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published: 2024-10-31T00:00:00

Updated: 2024-11-01T15:19:09.068Z

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

Link: CVE-2024-39721

cve-icon Vulnrichment

Updated: 2024-11-01T15:17:01.252Z

cve-icon NVD

Status : Awaiting Analysis

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

Modified: 2024-11-01T16:35:24.357

Link: CVE-2024-39721

cve-icon Redhat

No data.