CVE-2024-37032

Ollama before 0.1.34 does not validate the format of the digest (sha256 with 64 hex digits) when getting the model path, and thus mishandles the TestGetBlobsPath test cases such as fewer than 64 hex digits, more than 64 hex digits, or an initial ../ substring.
Configurations

No configuration.

History

27 Mar 2025, 21:15

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 8.8
CWE CWE-22

21 Nov 2024, 09:23

Type Values Removed Values Added
References () https://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go#L41-L58 - () https://github.com/ollama/ollama/blob/adeb40eaf29039b8964425f69a9315f9f1694ba8/server/modelpath_test.go#L41-L58 -
References () https://github.com/ollama/ollama/compare/v0.1.33...v0.1.34 - () https://github.com/ollama/ollama/compare/v0.1.33...v0.1.34 -
References () https://github.com/ollama/ollama/pull/4175 - () https://github.com/ollama/ollama/pull/4175 -
References () https://www.vicarius.io/vsociety/posts/probllama-in-ollama-a-tale-of-a-yet-another-rce-vulnerability-cve-2024-37032 - () https://www.vicarius.io/vsociety/posts/probllama-in-ollama-a-tale-of-a-yet-another-rce-vulnerability-cve-2024-37032 -

15 Jul 2024, 22:15

Type Values Removed Values Added
Summary
  • (es) Ollama anterior a 0.1.34 no valida el formato del resumen (sha256 con 64 dígitos hexadecimales) al obtener la ruta del modelo y, por lo tanto, maneja mal los casos de prueba TestGetBlobsPath, como menos de 64 dígitos hexadecimales, más de 64 dígitos hexadecimales o una inicial. ../ subcadena.
References
  • () https://www.vicarius.io/vsociety/posts/probllama-in-ollama-a-tale-of-a-yet-another-rce-vulnerability-cve-2024-37032 -

31 May 2024, 04:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-05-31 04:15

Updated : 2025-03-27 21:15


NVD link : CVE-2024-37032

Mitre link : CVE-2024-37032

CVE.ORG link : CVE-2024-37032


JSON object : View

Products Affected

No product.

CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')