Skip to content
HighVulnerabilityLLM-specific

CVE-2024-37032: Ollama path traversal in digest validation when getting model path

Identifier
CVE-2024-37032
Published
Record updated
View JSON
Affected
  • github.com/ollama/ollama < 0.1.34
Fixed in
0.1.34
  • released May 7, 2024, 24 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
89.6%

Summary

CVE-2024-37032 affects Ollama before 0.1.34. The software does not validate the format of the digest (sha256 with 64 hex digits) when getting the model path, so it mishandles inputs such as digests with fewer or more than 64 hex digits or an initial ../ substring. The weakness is classified as CWE-22, Path Traversal, and was published to NVD on 05/31/2024.

Mitigation

Fixed in 0.1.34. The source references the v0.1.33...v0.1.34 comparison and pull request 4175.