.. / CVE-2024-37032

Exploit for Ollama - Remote Code Execution (CVE-2024-37032)

Description:

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.

Nuclei Template

View the template here CVE-2024-37032.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2024/CVE-2024-37032.yaml
Copy

References:

https://github.com/Bi0x/CVE-2024-37032
https://www.wiz.io/blog/probllama-ollama-vulnerability-cve-2024-37032
https://nvd.nist.gov/vuln/detail/CVE-2024-37032