CVE-2026-103663
Publiée le 2026-10-08 · Dernière modification le 2026-10-08
Les serveurs Ollama sont vulnérables à une faille qui permet à un attaquant distant non authentifié d'écrire un fichier malveillant partout où le processus du serveur dispose de permissions d'écriture. Si le serveur a accès à son propre répertoire de bibliothèques — ce qui est courant dans les configurations Docker par défaut — un attaquant peut écraser des fichiers système pour obtenir un accès root complet lors du prochain redémarrage. Cette attaque est facile à exécuter via le réseau et ne nécessite aucune authentification préalable, bien qu'un redémarrage du serveur soit nécessaire pour déclencher l'exécution finale du code.
DÉTAIL DU VECTEUR CVSS
RÉFÉRENCES
Description officielle du NVD (en anglais)
Ollama is vulnerable to path traversal in the `/api/pull` endpoint due to insufficient validation of layer digests by the `digestToPath` function. An unauthenticated remote attacker can specify a path traversal sequence as a layer digest, causing a malicious binary to be written outside the model store. Critically if the server process has write access to `/usr/lib/ollama` (the default in most Ollama Docker images), an attacker can write the malicious file to that directory. On the next server restart, the file is loaded and executed, resulting in remote code execution as root. This issue was fixed in version 0.35.0.