CVE-2026-93348
Unsloth Zoo Code Injection via model_type in config.json
Mitigation
- Upgrade unsloth-zoo to 2026.8.14 or later.
- Upgrade unsloth to 2026.8.20 or later.
Who should check
- Anyone running unslothai unsloth-zoo >= 2025.9.9, < 2026.8.14
- Anyone running unslothai unsloth >= 2025.9.9, < 2026.8.20
Vulnerability facts
- Affected
- unslothai unsloth-zoo >= 2025.9.9, < 2026.8.14; unslothai unsloth >= 2025.9.9, < 2026.8.20
- Fixed in
- unslothai unsloth-zoo 2026.8.14, unslothai unsloth 2026.8.20
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.6 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.73% chance of exploitation in 30 days (percentile 50, 2026-11-26)
- CWE
- CWE-94
- Modified
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-93348. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-93348.md Affected: unslothai unsloth-zoo >= 2025.9.9, < 2026.8.14; unslothai unsloth >= 2025.9.9, < 2026.8.20 Fixed in: unslothai unsloth-zoo 2026.8.14, unslothai unsloth 2026.8.20 Steps: 1. Search this machine and project for unslothai unsloth-zoo, unslothai unsloth: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-93348 being exploited?
There is no confirmed exploitation: CVE-2026-93348 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.73% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-93348?
High: CVSS 8.6 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-93348?
unslothai unsloth-zoo >= 2025.9.9, < 2026.8.14; unslothai unsloth >= 2025.9.9, < 2026.8.20.
Is there a fix for CVE-2026-93348?
Yes. Fixed in unslothai unsloth-zoo 2026.8.14, unslothai unsloth 2026.8.20. Upgrade unsloth-zoo to 2026.8.14 or later. Upgrade unsloth to 2026.8.20 or later.
How do I check if I'm affected by CVE-2026-93348?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.