{"id":"CVE-2026-93348","aliases":["CVE-2026-93348"],"related":[],"kind":"vulnerability","state":"published","title":"Unsloth Zoo Code Injection via model_type in config.json","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-09-28T15:09:41.524Z","modified":"2026-09-30T17:32:07.107Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":8.6,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"date","introduced":"2025.9.9","fixed":"2026.8.14","status":"affected"}],"vendor":"unslothai","product":"unsloth-zoo","repo":"https://github.com/unslothai/unsloth-zoo","source":"cvelist"},{"ranges":[{"type":"date","introduced":"2025.9.9","fixed":"2026.8.20","status":"affected"}],"vendor":"unslothai","product":"unsloth","repo":"https://github.com/unslothai/unsloth","source":"cvelist"}],"references":[{"url":"https://github.com/unslothai/unsloth-zoo/pull/1083","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/unslothai/unsloth-zoo/pull/1108","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/unslothai/unsloth/commit/92ee0207a38ebc8af1a0e678aa92d7e7d901ea0d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/unsloth-zoo-code-injection-via-model-type-in-config-json","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Ariel Fogel (afogel) of Pillar Security"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-09-30T14:42:53.294Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-93348","url":"https://www.cve.org/CVERecord?id=CVE-2026-93348","licence":"CVE Terms of Use","modified":"2026-09-30T14:43:10.011Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-93348","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-93348","licence":"Public domain","modified":"2026-09-30T17:32:07.107Z"}],"updatedAt":"2026-11-25T22:59:41.348Z","epss":{"score":0.00447,"percentile":0.40598,"date":"2026-12-01T12:00:22.000Z"}}