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

Published Sep 28, 2026
·
Updated

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 gettransformersmodeltype() function in hfutils.py collects modeltype 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 modeltype value within a malicious model's config.json to terminate the generated import statement and execute arbitrary Python code via exec() in unslothcompiletransformers(), achieving remote code execution as the loading user when the model is loaded for training or inference.

Affected Software

2 affected components
Unsloth Unsloth Zoo>=2025.9.9<2026.8.14
Unsloth Unsloth>=2025.9.9<=2026.8.19

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Unsloth Zoo to a version that resolves this vulnerability.

    Fixed in 2026.8.14

Event History

Sep 28, 2026
CVE Published
via MITRE·03:09 PM
Data Sourced
via MITRE·03:09 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:17 PM
DescriptionSeverityWeakness

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203