Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious pickle payload as LoRA-GA/CorDA cache file
-
DeliveryHost file on public model hub or shared storage
-
ExploitSocial-engineer victim to download and configure cache path
-
ExecutionVictim runs PEFT training with CorDA/LoRA-GA initialization
-
Persisttorch.load() deserializes file without weights_only=True
-
ImpactArbitrary code executes in ML training environment
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
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: (1) the victim is using Hugging Face PEFT with either the LoRA-GA or CorDA initialization method, which are non-default LoRA initialization strategies; (2) the training or inference configuration points to a cache or covariance file path that an attacker controls or has poisoned - this could be a downloaded file from a public repository, a shared network path, or a file substituted via other means; (3) the victim's Python process has write access to the execution environment (standard for any ML training workload). The CVSS UI:R signal confirms that the victim must actively trigger model initialization referencing the malicious file. Exploitation is limited to users of the specific CorDA or LoRA-GA initialization modules; standard LoRA with default initialization or with PEFT's safe-loading paths is not affected. No network service, daemon, or web endpoint is exposed - exploitation is file-system and workflow-mediated, not an internet-facing attack against a running service. |
| Impact | The CVSS 3.1 score of 8.8 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) reflects a high-severity network-reachable RCE conditioned on user interaction. The UI:R metric is the primary limiting factor: exploitation requires a victim to actively load a malicious cache file. In practice this is highly plausible in the ML ecosystem, where researchers and engineers routinely download pre-computed initialization caches, covariance matrices, and model artifacts from public repositories such as Hugging Face Hub - making this a credible supply-chain or social-engineering vector. Attack complexity is genuinely low once the malicious file is in the load path, as deserialization is automatic and silent. No EPSS data was provided; without it, base-rate exploitation probability is unknown. The vulnerability is not listed in CISA KEV and no public exploit code has been identified, which moderates immediate urgency. However, the ease of crafting a malicious pickle and the popularity of LoRA fine-tuning workflows make this a credible near-term exploitation target. The inconsistency - that PEFT's own codebase already uses weights_only=True elsewhere - suggests this is a clear oversight rather than an intentional design choice, and the fix path is straightforward. |
| Exploit ScenarioDerived | An attacker publishes a seemingly useful pre-computed LoRA-GA or CorDA covariance cache to Hugging Face Hub or a public repository, advertising it as optimized initialization data for a popular base model. A researcher downloads the cache and configures their PEFT training script to reference the file path; upon initialization, PEFT calls torch.load() on the malicious file without weights_only=True, triggering pickle deserialization that executes attacker-controlled code - for example, exfiltrating API keys, model weights, or establishing a reverse shell in the training environment. No public exploit code has been identified, but constructing a malicious pickle payload requires only standard Python knowledge. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
Unsafe pickle deserialization in Hugging Face PEFT's LoRA-GA and CorDA initialization modules allows arbitrary code execution when a victim loads a malicious cache or covariance file. The affected code paths in corda.py (lines ~102 and ~163) and loraga.py (line ~101) call torch.load() without weights_only=True, bypassing the safe-loading wrapper that PEFT enforces elsewhere in the codebase. An attacker who can supply or substitute a pre-computed LoRA-GA or CorDA cache file - for example via a shared model repository or poisoned download - achieves full code execution in the victim's ML environment upon initialization. No public exploit code or active exploitation (CISA KEV) has been identified at time of analysis.
RemediationAI
No vendor-released patch version has been confirmed at time of analysis; references point only to the upstream repository and source file rather than a fix commit or tagged release. Users should immediately audit any use of LoRA-GA or CorDA initialization in their PEFT workflows and avoid loading cache or covariance files from untrusted or unverified sources. As a direct compensating control, developers can manually patch the three affected torch.load() call sites in corda.py (~lines 102 and 163) and loraga.py (~line 101) to add weights_only=True, consistent with PEFT's own safe-loading wrapper used elsewhere in the codebase - note this may break loading of legacy cache files that contain non-tensor objects, requiring those caches to be regenerated. Additionally, restrict the file paths accepted by the config to local, cryptographically verified files only, and avoid downloading pre-computed LoRA-GA or CorDA caches from public or untrusted repositories until a patch is released. Monitor https://github.com/huggingface/peft for upstream fix commits and new releases.
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
PEFT (Parameter-Efficient Fine-Tuning) is a Hugging Face library enabling efficient adaptation of large language models via techniques such as LoRA. LoRA-GA and CorDA are initialization strategies that pre-compute covariance or cache matrices to accelerate or improve LoRA training; these matrices are saved and loaded as files specified by the user's configuration. PyTorch's torch.load() function performs full Python pickle deserialization by default, which is an inherently unsafe operation because pickle can instantiate arbitrary Python objects and execute code during deserialization. The weights_only=True flag, introduced in PyTorch to restrict deserialization to safe tensor types, is used in other parts of the PEFT codebase but was omitted in the three torch.load() call sites identified: corda.py at approximately lines 102 and 163, and loraga.py at approximately line 101. This is a CWE-502 (Deserialization of Untrusted Data) root cause. The affected CPE is cpe:2.3:a:huggingface:peft:*:*:*:*:*:*:*:*, indicating all tracked PEFT versions are potentially affected.
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
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Network vector reflects shared/downloaded cache delivery; UI:R because victim must actively load the file; PR:N as no target-side authentication gates deserialization; full C/I/A impact from arbitrary code execution.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
DescriptionCVE.org
Hugging Face peft's LoRA-GA and CorDA initialization modules (src/peft/tuners/lora/corda.py lines ~102 and ~163, and src/peft/tuners/lora/loraga.py line ~101) call torch.load() on config-specified cache/covariance files without weights_only=True, bypassing peft's own safe-loading wrapper used elsewhere in the codebase. Because torch.load() without weights_only=True performs full pickle deserialization, loading a malicious cache or covariance file (e.g. a shared/downloaded LoRA-GA or CorDA cache) results in arbitrary code execution.
Executive ViewAI
Hugging Face PEFT versions with LoRA-GA and CorDA modules contain unsafe pickle deserialization vulnerabilities that enable arbitrary code execution when loading malicious cache files. Any organization using PEFT for model fine-tuning is exposed if attackers can poison or substitute cache files in shared model repositories or local environments. Leadership should prioritize rapid mitigation to prevent potential compromise of ML infrastructure and access to sensitive training data.
No vendor-released patch identified at time of analysis. Interim mitigations include: restrict cache directory access to trusted administrative accounts and implement file integrity monitoring; run PEFT workloads in isolated, sandboxed environments with network segmentation and resource limits; validate and restrict model repository sources to internal or verified repositories; implement cryptographic verification of model cache files to detect tampering; deploy endpoint detection and response (EDR) on ML infrastructure to detect anomalous process execution during model initialization.
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
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
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-53366
GHSA-g7pc-47rc-wvwf
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB