Skip to main content

Hugging Face PEFT CVE-2026-71281

| EUVDEUVD-2026-53366 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-08-05 TuranSec GHSA-g7pc-47rc-wvwf
8.8
CVSS 3.1 · Vendor: TuranSec
Share

Severity by source

Vendor (TuranSec) PRIMARY
8.8 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI
8.8 HIGH

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.

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:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat
8.8 HIGH
qualitative

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Analysis Generated
Aug 05, 2026 - 13:44 vuln.today
CVE Published
Aug 05, 2026 - 12:26 cve.org
HIGH 8.8

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.

AnalysisAI

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.

Technical ContextAI

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.

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.

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-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-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-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-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-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-2025-1194 MEDIUM POC
6.5 Apr 29

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

CVE-2026-5241 CRITICAL
9.6 Jun 03

Remote code execution in Hugging Face Transformers 5.2.0 allows a malicious model repository to bypass the user's explic

CVE-2025-11844 MEDIUM POC
5.4 Oct 22

XPath injection in Hugging Face Smolagents 1.20.0 lets an attacker who can influence the text passed to the vision web b

CVE-2026-25874 CRITICAL
9.3 Apr 23

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

Vendor StatusVendor

Share

CVE-2026-71281 vulnerability details – vuln.today

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