Skip to main content

HuggingFace finetrainers EUVDEUVD-2026-119898

| CVE-2026-124588 LOW
Code Injection (CWE-94)
2026-11-09 VulDB GHSA-jx9r-269r-fp82
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Publish malicious model index
  2. Delivery
    Victim loads model in finetrainers
  3. Exploit
    Craft Library argument payload
  4. Execution
    resolve_component_cls injects code
  5. Impact
    Arbitrary code execution in training process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to load or process an attacker-controlled model index (model_index) whose 'Library' field is manipulated, reaching the resolve_component_cls function in finetrainers/utils/model.py on an unpatched version 0.1.0 or 0.2.0. The limiting factors are: required user interaction (UI:P - the victim must initiate loading of the malicious model/config), the absence of any vendor patch (no fixed version published, so no clean remediation exists yet), and the fact that the attack depends on the victim consuming untrusted model artifacts rather than exploitation of a listening service. No authentication is needed on the attacker side, and the attacker does not need prior access to the victim system.

Impact

Signals here point to a moderate, not emergency, priority. The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L, score 5.3) describes network reach and low complexity but requires passive user interaction (UI:P) - a victim must load or train on an attacker-influenced model index for the flaw in resolve_component_cls to be reached. The decision label is 'this_month' (not act_now/emergency), there is NO CISA KEV listing, and no EPSS score was supplied, so widespread automated exploitation is not indicated. A public PoC reference (poc.zip attachment) exists but is not verified as working exploit code, and VulDB notes the project was notified via issue #435 and has not yet responded (no patch). The notable tension is between the signals: the vendor/VulDB rated impacts as Low (VC:L/VI:L/VA:L), yet CWE-94 code injection via the Library argument realistically implies arbitrary code execution in the training process, which argues for higher impact than the 5.3 suggests - this discrepancy should be verified against the PoC and source. Net: a real but conditional issue (needs user interaction and an unpatched install), worth remediating on a normal patch cadence rather than as a drop-everything emergency.

Exploit ScenarioDerived

An attacker publishes or tampers with a model repository whose model_index specifies a malicious 'Library' value; when a victim running finetrainers 0.1.0 or 0.2.0 loads that model, resolve_component_cls processes the attacker-controlled Library argument and injects/executes attacker code (CWE-94). A public PoC reference (poc.zip) exists but is not verified as working exploit code. Exploitation is remote but requires the victim to take the action of loading the crafted model (UI:P).

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 09, 2026

Code injection in HuggingFace finetrainers 0.1.0 and 0.2.0 allows a remote, unauthenticated attacker to execute arbitrary code by supplying a crafted model index whose 'Library' field is loaded through resolve_component_cls in finetrainers/utils/model.py. The attacker needs no credentials or prior access to the victim host; exploitation depends on the victim user initiating the load of the malicious model artifact (UI:P in the CVSS 4.0 vector), which is why the vendor-scored severity is 5.3 while our independent CVSS 3.1 assessment rates impact as C:H/I:H/A:H because successful triggering yields full code execution in the training process. The flaw is not listed in CISA KEV; a public PoC reference exists (a poc.zip attachment linked from the GitHub issue), but it is not verified as working exploit code, and the vendor has not responded to issue report #435, so no fixed version has been published.

RemediationAI

No vendor-released patch has been identified at the time of analysis: the problem was reported to the project through issue https://github.com/huggingface/finetrainers/issues/435 but the vendor has not responded, and no fixed version number is published, so users cannot upgrade out of the flaw yet. Until a fix lands, treat every model_index consumed by finetrainers 0.1.0/0.2.0 as executable input: only load model indexes from sources you control or have fully reviewed, and inspect and allowlist the 'Library' field before loading - the trade-off is that this breaks compatibility with legitimate third-party libraries not on the allowlist and requires manual review effort per artifact. Run training jobs that consume externally sourced model artifacts inside a sandboxed container or low-privilege account without access to production credentials, SSH keys, or a broad filesystem, which limits post-exploitation impact but does not prevent the injected code from running inside the sandbox. Restrict or intercept outbound network access from training hosts to blunt follow-on payload retrieval and exfiltration, at the cost of breaking jobs that must download weights or telemetry. Monitor https://github.com/huggingface/finetrainers/ and https://vuldb.com/vuln/433012 for the eventual fix, and plan to upgrade as soon as a patched release is tagged.

Affected VersionsENISA

finetrainers 0.2.0
finetrainers 0.1.0

Affected Packages

euvd finetrainers no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

finetrainers is HuggingFace's training/fine-tuning framework for diffusion and related generative models. Its Model Index Handler reads a model_index structure and, via resolve_component_cls in finetrainers/utils/model.py, dynamically resolves and imports a Python class based on the 'Library' value declared in that index. Dynamically importing or resolving a class from an untrusted configuration field is the root cause here: because the value is attacker-controllable and is consumed by an import/eval-style resolution path, a crafted model index can steer the framework into loading arbitrary code (CWE-94, Improper Control of Generation of Code). The trigger pathway is artifact consumption rather than a listening network service - an attacker publishes or shares a malicious model index, and code executes in the victim's Python process when the victim loads it. CPE data covers the package as cpe:2.3:a:huggingface:finetrainers:*:*:*:*:*:*:*:*, with the affected range explicitly reported as versions 0.1.0 and 0.2.0. The exact parsing and resolution logic that reaches the injection point is described only at class level in the available sources; the trigger is not described in further detail in the available sources.

Know when Hugging Face gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 2.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 8.8 HIGH

CWE-94 code injection via an attacker-controlled Library value yields arbitrary code execution (C/I/A High); it is network-reachable with no attacker privileges but needs the victim to load the malicious model (UI:R).

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Nov 09, 2026 - 10:22 NVD
MEDIUM LOW
CVSS changed
Nov 09, 2026 - 10:22 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVE Published
Nov 09, 2026 - 09:45 cve.org
MEDIUM 5.3

DescriptionCVE.org

A security flaw has been discovered in huggingface finetrainers 0.1.0/0.2.0. The impacted element is the function resolve_component_cls of the file finetrainers/utils/model.py of the component Model Index Handler. Performing a manipulation of the argument Library results in code injection. The attack can be initiated remotely. The exploit has been released to the public and may be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Low
niche HuggingFace video/image model fine-tuning library, limited production footprint
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2024-3568 CRITICAL POC
9.6 Apr 10

The huggingface/transformers library is vulnerable to arbitrary code execution through deserialization of untrusted data

CVE-2026-25874 CRITICAL POC
9.3 Apr 23

Unauthenticated remote code execution in HuggingFace LeRobot (versions 0 through 0.5.1) stems from pickle.loads() being

CVE-2026-33625 HIGH POC
8.8 Sep 18

Arbitrary Python code execution in LMDeploy 0.12.1 through 0.12.2 lets an attacker who publishes a malicious model on Hu

CVE-2026-57845 HIGH POC
8.7 Oct 23

Deserialization of attacker-supplied pickle data in the deprecated pandas packaged builder of Hugging Face Datasets (all

CVE-2023-6730 HIGH POC
8.8 Dec 19

Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. Rated high severity (CVSS

CVE-2023-7018 HIGH POC
7.8 Dec 20

Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. Rated high severity (CVSS

CVE-2025-3262 HIGH POC
7.5 Jul 07

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the huggingface/transformers repository,

CVE-2025-6921 HIGH POC
7.5 Sep 23

The huggingface/transformers library, versions prior to 4.53.0, is vulnerable to Regular Expression Denial of Service (R

CVE-2026-66007 MEDIUM POC
6.9 Jul 24

Path traversal in Hugging Face Datasets up to 5.0.0 allows attackers to read arbitrary local files when a victim process

CVE-2026-63086 MEDIUM POC
6.9 Jul 16

Server-side request forgery in HuggingFace text-generation-inference through version 3.3.7 enables unauthenticated remot

CVE-2026-69112 MEDIUM POC
6.9 Aug 10

Path traversal in Hugging Face Accelerate through 1.14.0 exposes two distinct attack outcomes when a user loads a crafte

CVE-2025-1194 MEDIUM POC
6.5 Apr 29

A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, spe

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy