Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish malicious model index
-
DeliveryVictim loads model in finetrainers
-
ExploitCraft Library argument payload
-
Executionresolve_component_cls injects code
-
ImpactArbitrary 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). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
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.
More in Hugging Face
View allThe huggingface/transformers library is vulnerable to arbitrary code execution through deserialization of untrusted data
Unauthenticated remote code execution in HuggingFace LeRobot (versions 0 through 0.5.1) stems from pickle.loads() being
Arbitrary Python code execution in LMDeploy 0.12.1 through 0.12.2 lets an attacker who publishes a malicious model on Hu
Deserialization of attacker-supplied pickle data in the deprecated pandas packaged builder of Hugging Face Datasets (all
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. Rated high severity (CVSS
Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. Rated high severity (CVSS
A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the huggingface/transformers repository,
The huggingface/transformers library, versions prior to 4.53.0, is vulnerable to Regular Expression Denial of Service (R
Path traversal in Hugging Face Datasets up to 5.0.0 allows attackers to read arbitrary local files when a victim process
Server-side request forgery in HuggingFace text-generation-inference through version 3.3.7 enables unauthenticated remot
Path traversal in Hugging Face Accelerate through 1.14.0 exposes two distinct attack outcomes when a user loads a crafte
A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, spe
EUVD-2026-119898
GHSA-jx9r-269r-fp82
NVD
CVE.org
EPSS
VulDB
Exploit-DB