CVE-2026-93348
published high CVSS 4.0 · 8.6Unsloth Zoo Code Injection via model_type in config.json
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.6 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.1 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| unslothai | unsloth-zoo | 2025.9.9 to < 2026.8.14 (affected · date)Default: unaffected | VulnCheck · cna |
| unslothai | unsloth | 2025.9.9 to < 2026.8.20 (affected · date)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
4- Pull Request (1) https://github.com/unslothai/unsloth-zoo/pull/1083
- Pull Request (2) https://github.com/unslothai/unsloth-zoo/pull/1108
- Unsloth Zoo Dependency Bump https://github.com/unslothai/unsloth/commit/92ee0207a38ebc8af1a0e678aa92d7e7d901ea0d
- https://www.vulncheck.com/advisories/unsloth-zoo-code-injection-via-model-type-in-config-json
Provider assertions
2VulnCheck · cna
Unsloth Zoo Code Injection via model_type in config.json
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- af8c7e69f984d0f69c2426f1bb09739859be13f798e97e970115d17650aec215
- Ingested
- 30 Sep 2026, 15:35:22 UTC
- Source record
- Official CVE record