CVE-2026-93348 json
Unsloth Zoo Code Injection via model_type in config.json
published last mo. modified last mo. also EUVD-2026-88318
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 35%
- public exploits
- 0
- none known
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.
Patch / fix
- unslothai unsloth-zoo 2026.8.14
- unslothai unsloth 2026.8.20
- github.com/unslothai/unsloth@92ee020 commit
- github.com/unslothai/unsloth-zoo#1083 pull request
- github.com/unslothai/unsloth-zoo#1108 pull request
Is CVE-2026-93348 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-93348 updated cvss 8.8
unsloth-zoo: unsloth: Unsloth Zoo: Arbitrary code execution via crafted model configuration
-
Red Hat OpenShift AI (RHOAI) rhoai/odh-th-torch-cuda-py312-rhel9, rhoai/odh-th-torch-rocm-py312-rhel9, rhoai/odh-th06-rocm64-torch291-py312-rhel9, rhoai/odh-th06-cuda130-torch210-py312-rhel9affected: workaround, no fix available
-
Red Hat OpenShift AI 3.5 rhoai/odh-training-rocm64-torch29-py312-rhel9 1791926972, rhoai/odh-training-cuda128-torch29-py312-rhel9 1791927231fixed: vendor fix RHSA-2026:86891
-
Red Hat OpenShift AI (RHOAI) rhoai/odh-th06-cuda130-torch291-py312-rhel9not affected: component not present
-
Red Hat OpenShift AI 3.5 rhoai/odh-cli-rhel9 1791945905, rhoai/rhai-cli-rhel9 1791945905, rhoai/odh-automl-rhel9 1791916705, rhoai/odh-mlflow-rhel9 1791947857, rhoai/odh-autorag-rhel9 1791903266, rhoai/odh-trainer-rhel9 1791952138, +111 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- last mo.
Exploit prediction
0.41% chance of exploitation in the next 30 days, higher than 35% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.6 | 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 |
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| CNA | 4.0 | 8.6 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Inferred packages
No advisory lists a package for this vulnerability yet. The CVE names these as products and links their GitHub repository, and the package registry names the same repository, so they are probably the affected packages. Low confidence: the versions are the CVE’s own for the product, and a stack check reports the package as unchecked when there are none.
| ecosystem | package | repository | affected |
|---|---|---|---|
| pypi | unsloth | unslothai/unsloth | no versions given |
| pypi | unsloth-zoo | unslothai/unsloth | no versions given |
Affected products
- unslothai unsloth-zoo
- unslothai unsloth
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/unslothai/unsloth-zoo/pull/1083
patch, issue-tracking
-
github.com
/unslothai/unsloth-zoo/pull/1108
patch, issue-tracking
-
github.com
/unslothai/unsloth/commit/92ee0207a38ebc8af1a0e678aa92d7e7d901ea0d
patch
-
vulncheck.com
/advisories/unsloth-zoo-code-injection-via-model-type-in-config-json
third-party-advisory
Sources
- CVE List CVE-2026-93348
- NVD CVE-2026-93348
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.