Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
unslothai unsloth-zoo
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Unsloth Zoo 在 2025.9.9 至 2026.8.14 之前版本(即 Unsloth 2025.9.9 至 2026.8.19 版本中实现的组件)存在代码注入漏洞。该漏洞位于模型加载的编译路径中, 文件中的 函数从嵌套的模型配置中收集 值时,未对字符进行白名单校验,导致换行符和任意 Python 源代码在规范化处理后仍能保留。 攻击者可在恶意模型的 文件中,于嵌套的 字段中嵌入一个换行符,从而终止生成的 import 语句,并通过 中的 执行任意 Python 代码。当该模型被加载用于训练或推理时,攻

CVSS 8.1 · High
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-93348

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Unsloth Zoo Code Injection via model_type in config.json
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
unslothai unsloth-zoo 2025.9.9 ~ 2026.8.14 -
unslothai unsloth 2025.9.9 ~ 2026.8.20 -

II. Public POCs for CVE-2026-93348

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-93348

请登录查看更多情报信息。

Other References for CVE-2026-93348 (4)

IV. Related Vulnerabilities

V. Comments for CVE-2026-93348

No comments yet


Leave a comment