Toutes les vulnérabilités
HIGHAI/LLMexploited in the wild

CVE-2024-37032

Ollama · ollama

Résumé

Ollama, dubbed Probllama by Wiz Research, failed to validate the digest field when resolving model paths from a model manifest, not enforcing the expected sha256 format. A malicious manifest could supply a digest containing directory-traversal sequences, letting an attacker write or overwrite arbitrary files on the server when a crafted model is pulled, leading to path traversal and remote code execution including on internet-exposed instances. The flaw affects versions prior to 0.1.34, which adds digest format validation.

Comment l’éviter dans votre code

  • Upgrade Ollama to 0.1.34 or later to enforce digest (sha256) format validation.
  • Never expose Ollama directly to the internet; place it behind auth and network controls.
  • Pull models only from trusted, vetted sources; validate manifests before use.
  • Run Ollama with least privilege in a sandbox to limit path-traversal file writes.
  • Restrict filesystem and egress access to contain RCE attempts.

Références

Vulnérabilités liées

Tout AI/LLM →