CVE-2026-93348Unsloth Zoo Code Injection via model_type in config.json
Updated under an hour ago ()
Does this affect you?
It affects unslothai unsloth-zoo and 1 other product. Add what you run to find out whether that includes you.
EPSS puts the chance of exploitation in the next 30 days at 0.41%, higher than 33% of scored CVEs.
Do this next
Free account, 1 product
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.
- CVSS
- 8.1 HIGH (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- Weakness (CWE)
- CWE-94
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- 0.41% (percentile 33)
- Assigned by
- VulnCheck
- NVD analysis
- Deferred
- Record last updated
- Sep 30, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
unslothai unsloth-zoo unslothai:unsloth_zoo (from the name) | from 2025.9.9 before 2026.8.14 | CNA record |
unslothai unsloth unslothai:unsloth (from the name) | from 2025.9.9 before 2026.8.20 | CNA record |
References
- https://github.com/unslothai/unsloth-zoo/pull/1083patch, issue-tracking
- https://github.com/unslothai/unsloth-zoo/pull/1108patch, issue-tracking
- https://github.com/unslothai/unsloth/commit/92ee0207a38ebc8af1a0e678aa92d7e7d901ea0dpatch
- https://www.vulncheck.com/advisories/unsloth-zoo-code-injection-via-model-type-in-config-jsonthird-party-advisory
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.