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

- Severity: High 8.6 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-09-28T15:09:41.524Z
- Modified: 2026-09-30T17:32:07.107Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- unslothai unsloth-zoo: from 2025.9.9 before 2026.8.14
- unslothai unsloth: from 2025.9.9 before 2026.8.20

## Every score

- VulnCheck: CVSS:4.0 8.6 High `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`
- VulnCheck: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`

## References

- <https://github.com/unslothai/unsloth-zoo/pull/1083> (issue-tracking, patch)
- <https://github.com/unslothai/unsloth-zoo/pull/1108> (issue-tracking, patch)
- <https://github.com/unslothai/unsloth/commit/92ee0207a38ebc8af1a0e678aa92d7e7d901ea0d> (patch)
- <https://www.vulncheck.com/advisories/unsloth-zoo-code-injection-via-model-type-in-config-json> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-93348](https://www.cve.org/CVERecord?id=CVE-2026-93348), CVE Terms of Use, modified 2026-09-30
- NVD: [CVE-2026-93348](https://nvd.nist.gov/vuln/detail/CVE-2026-93348), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-93348 · Whole record: https://cve.day/CVE-2026-93348.json · Rebuilt by cve.day 2026-11-25T22:59:41.348Z
