CVE-2026-93348 Unsloth Zoo Code Injection via model_type in config.json

High 8.6 Published Updated

Attackers can execute arbitrary Python code by embedding malicious payloads in a model's config.json, affecting users loading models with Unsloth Zoo.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-93348?

CVE-2026-93348 is a high-severity code injection vulnerability in unslothai unsloth, published on 28 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Unsloth Zoo versions 2025.9.9 before 2026.8.14, as implemented in Unsloth 2025.9.9 through 2026.8.19, contains a code injection vulnerability in the model-loading compile path where the get_transformers_model_type() function in hf_utils.py collects model_type values from nested model configurations without enforcing a character allowlist, allowing newlines and arbitrary Python source to survive normalization. Attackers can embed a newline in a nested model_type value within a malicious model's config.json to terminate the generated import statement and execute arbitrary Python code via exec() in unsloth_compile_transformers(), achieving remote code execution as the loading user when the model is loaded for training or inference.

Weakness: CWE-94

Which versions are affected by CVE-2026-93348?

How do I fix CVE-2026-93348?

No fix has been published for CVE-2026-93348 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-93348 being exploited?

There is no known exploitation of CVE-2026-93348 in the wild and no public exploit code.

Sources

Also known as GHSA-6crx-pj66-wf6h.

Is CVE-2026-93348 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free