
Docker-based proof-of-concept reproducing CVE-2026-103663, an unauthenticated RCE in Ollama via manifest digest path traversal that plants a shared object loaded as root.
DirtyDigest is an unauthenticated remote code execution in Ollama via a path traversal in the model-pull manifest digest, which plants a shared object that the native library loader dlopens as root.
Affected: 0.34.2 through 0.34.x (default Docker image runs as root). Fixed in: 0.35.0.
Found and reported by Bartlomiej Dmitruk (striga.ai).
Writeup: https://striga.ai/research/ollama-manifest-digest-rce
One-command reproduction:
bash run.sh
This starts Ollama 0.34.3 and a hostile registry, then sends one unauthenticated POST /api/pull whose layer digest is a path traversal string. The pull writes a benign ELF to /usr/lib/ollama/mlx_zzz/libmlxc.tmp, outside the model store. Restarting the container makes the MLX loader glob libmlxc.*, dlopen the planted file, and run its constructor as root. RCE is verified by reading /tmp/PWNED (uid=0) inside the container.
docker compose down