Unsloth Studio Flaw Allowed Malicious Models to Execute Code During Inspection

Summary
A flaw in Unsloth Studio let malicious Hugging Face models execute Python code when users inspected their configuration. Unsloth fixed the issue in version 2026.6.9; researchers report no evidence of real-world exploitation.
Key points
- Selecting a malicious model in Unsloth Studio could execute Python code from its Hugging Face repository, even before the model weights were loaded or inference began.
- The flaw stemmed from using Transformers’ `trust_remote_code=True` while checking a model’s `config.json`.
- Code ran with the user's permissions and could potentially access data, model artifacts, or credentials available to the compromised process.
- Unsloth fixed the issue in update 2026.6.9; Pillar Security tested the attack vector and confirmed it was closed.
- Pillar reported no evidence of real-world exploitation of this particular mechanism and said no CVE was assigned.
- Pillar recommended upgrading to Unsloth Studio 2026.6.9 or later and treating repositories loaded with `trust_remote_code` as executable, untrusted code.
Article Details
- Vulnerability Types
- Arbitrary code execution through Python code in a malicious model repository
- Exploitation Status
- not_reported
- Exploit Availability
- none_reported
- Patch Status
- available
- Workarounds
- Treat model repositories loaded with Transformers trust_remote_code as untrusted code rather than data.
- Ensure tools in the pipeline do not enable trust_remote_code on the user's behalf.
MITRE ATT&CK
CVE
CVE-2026-46432first time it has been at the center of a vulnerability like this, even this year (see LMDeploy bug CVE-2026-46432, vLLM bug CVE-2026-4944, and InstructLab bug CVE-2026-6859).CVE-2026-4944at the center of a vulnerability like this, even this year (see LMDeploy bug CVE-2026-46432, vLLM bug CVE-2026-4944, and InstructLab bug CVE-2026-6859).CVE-2026-6859this, even this year (see LMDeploy bug CVE-2026-46432, vLLM bug CVE-2026-4944, and InstructLab bug CVE-2026-6859).
People
Vendors
Pillar SecurityPillar Security's Ariel Fogel published a blog post today covering a flaw in Unsloth Studio. Unsloth Studio is the Web UI front end for Unsloth, a popular open source library used for fine-tuning and quantizing largeUnslothUnsloth has fixed a vulnerability in its Web user interface (UI) front end that exposed users to arbitrary code execution through malicious models.
Products
Hugging Facea malicious model in Unsloth Studio could cause it to execute Python code shipped within the model's Hugging Face repository.InstructLabvulnerability like this, even this year (see LMDeploy bug CVE-2026-46432, vLLM bug CVE-2026-4944, and InstructLab bug CVE-2026-6859).LMDeployis far from the first time it has been at the center of a vulnerability like this, even this year (see LMDeploy bug CVE-2026-46432, vLLM bug CVE-2026-4944, and InstructLab bug CVE-2026-6859).Transformerssetting while checking a model's configuration. The setting allowed the underlying "Transformers" library to download and execute custom Python code referenced by the model's config.json, even beforeUnsloth StudioPillar Security's Ariel Fogel published a blog post today covering a flaw in Unsloth Studio. Unsloth Studio is the Web UI front end for Unsloth, a popular open source library used for fine-tuning and quantizing largevLLMit has been at the center of a vulnerability like this, even this year (see LMDeploy bug CVE-2026-46432, vLLM bug CVE-2026-4944, and InstructLab bug CVE-2026-6859).