The Unsloth model-loading pipeline interpolated the model_type value from an untrusted model configuration into generated Python execution code. A developer had to load a model artifact with attacker-controlled configuration through the affected Unsloth or unsloth-zoo loader. Embedded source content in that metadata field could execute before model weights…
Inspect the ClaimsCase · DiggingBeagle record
Unsloth model_type metadata reached Python execution despite remote-code trust disabled
The Unsloth model-loading pipeline interpolated the model_type value from an untrusted model configuration into generated Python execution code. Embedded source content in that metadata field could execute before model weights or tokenizer code were processed even with trust_remote_code set to false.
A developer had to load a model artifact with attacker-controlled configuration through the affected Unsloth or unsloth-zoo loader. The reported arbitrary-code execution was a controlled reproduction, not a census of exploited AI deployments.
Assessment profile
Assessment method- Setting
- research demonstration
- Exploitation
- demonstrated
- Evidence
- Grade B
- Remediation
- patch available
- AI role
- AGAINST AI
Basis and provenance
The cited primary technical report or advisory supports the stated mechanism within its reported scope. The assessment does not infer a production breach, a victim count or a comparable impact score from a laboratory result. A maintainer or advisory names a patched release; that does not prove every deployed instance has updated. Boundary: Setting trust_remote_code to false can block one code-loading pathway without preventing string interpolation into an unrelated internal exec.
Assessed Oct 29, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-CP23-UNSLOTH-MODEL-LOADER-EXEC-1 · CLM-ENRICH-20261029-34 · Pillar Security: model metadata code execution in Unsloth
At a glance
Embedded source content in that metadata field could execute before model weights or tokenizer code were processed even with trust_remote_code set to false.
Read the implicationsThe reported arbitrary-code execution was a controlled reproduction, not a census of exploited AI deployments.
Limits and uncertaintyFull account
The Unsloth model-loading pipeline interpolated the model_type value from an untrusted model configuration into generated Python execution code.
A developer had to load a model artifact with attacker-controlled configuration through the affected Unsloth or unsloth-zoo loader. Embedded source content in that metadata field could execute before model weights or tokenizer code were processed even with trust_remote_code set to false.
The reported arbitrary-code execution was a controlled reproduction, not a census of exploited AI deployments. Upgrade affected Unsloth packages to fixed versions and treat model metadata as typed data rather than executable source code.
Evidence interpretation and control boundary. Setting trust_remote_code to false can block one code-loading pathway without preventing string interpolation into an unrelated internal exec. The vulnerable Unsloth path treated a model configuration field as part of generated Python source before weight loading. An attacker needed a model artifact selected by the developer, not mere access to a public inference endpoint. Version-pinned loader validation matters independently of the model checkpoint filename.
Mechanism and trust boundary
- 01
Step
- 02
Step
- 03
Step
Claims & evidence
CLM-ENRICH-20261029-34Pillar Security demonstrates that model_type text from an untrusted model config could reach executable Python source generation in affected Unsloth loaders even when trust_remote_code was disabled.supported
Basis: reported finding
- supportsPillar Security: model metadata code execution in Unslothindependent technical reproduction
Pillar Security: model_type interpolation, trust_remote_code=false reproduction and fix details
CLM-CP23-UNSLOTH-MODEL-LOADER-EXEC-1The Unsloth model-loading pipeline interpolated the model_type value from an untrusted model configuration into generated Python execution code. A developer had to load a model artifact with attacker-controlled configuration through the affected Unsloth or unsloth-zoo loader. Embedded source content in that metadata field could execute before model weights or tokenizer code were processed even with trust_remote_code set to false.supported
Basis: reported finding
- supportsPillar Security: model metadata code execution in Unslothindependent technical reproduction
Pillar Security: model_type interpolation, trust_remote_code=false reproduction and fix details
Implications
Embedded source content in that metadata field could execute before model weights or tokenizer code were processed even with trust_remote_code set to false.
Controls and mitigations
- Upgrade affected Unsloth packages to fixed versions and treat model metadata as typed data rather than executable source code.
Unknowns and contradictions
- The reported arbitrary-code execution was a controlled reproduction, not a census of exploited AI deployments.
Sources and citation
Material revision history
- Oct 29, 2026 · Canonical change recorded · new in release · revision 202