Skip to content
MediumNews

Unsloth’s model picker had a code-execution problem

Published
Record updated
View JSON

Summary

Pillar Security found that selecting a model in Unsloth Studio made the application download and execute Python code from the model repository, with no weights loaded or inference run. The code ran with the user's permissions, which could expose training data, Hugging Face tokens, SSH keys and cloud credentials. Unsloth's maintainers declined to issue an advisory or CVE, citing Studio's beta status, and fixed the issue in June.

Mitigation

In version 2026.6.9, Studio no longer enables arbitrary model loading directly from Hugging Face and no longer trusts remote code from local model files. Pillar urges users to upgrade to the fixed version, even if they only use Unsloth core, and to audit LLM workflows for unnecessary occurrences of trust_remote_code=True.