Article

    Cyber News / Article / Vulnerability in Ollama software

    Vulnerability in Ollama software
    CE
    CERT Polska-28 days ago

    Vulnerability in Ollama software

    CERT Polska has received a report about vulnerability in Ollama software and participated in coordination of its disclosure.

    The vulnerabilityCVE-2026-103663: Ollama is vulnerable to path traversal in the/api/pullendpoint due to insufficient validation of layer digests by thedigestToPathfunction. 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.

    We thank Bartłomiej Dmitruk (striga.ai) for the responsible vulnerability report.

    Original source