cve.bz

CVE-2026-93348 unslothai: Code Injection

8.6 highEPSS 0.4%

High (8.6) in unslothai. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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

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
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 36th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-09-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-93348 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-93348?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-93348?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-93348 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
unslothai unsloth-zoofrom 2025.9.9 before 2026.8.14
unslothai unslothfrom 2025.9.9 before 2026.8.20

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Product Security has rated this vulnerability as having an impact of Important because it allows arbitrary code execution with the permissions of the executing application or container environment. Although triggering the flaw requires user interaction—specifically loading an untrusted model architecture into a workflow—successful exploitation completely compromises the integrity and confidentiality of the running workload. Within Red Hat OpenShift AI, exposure is restricted to pipelines and environments where users load untrusted model configurations.

Red Hat's mitigation

Only load model configurations and weights from trusted and verified repositories. Avoid ingesting untrusted or unverified third-party models in training or inference pipelines. When processing external models, run workloads in isolated container environments with restricted privileges and limited network access.

ProductPackageStateAdvisory
Red Hat OpenShift AI 3.5rhoai/odh-training-cuda128-torch29-py312-rhel9:1791927231Fixed 2026-10-21RHSA-2026:86891
Red Hat OpenShift AI 3.5rhoai/odh-training-rocm64-torch29-py312-rhel9:1791926972Fixed 2026-10-21RHSA-2026:86891
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cuda130-torch210-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cuda130-torch291-py312-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-rocm64-torch291-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th-torch-cuda-py312-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th-torch-rocm-py312-rhel9Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-93348.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON