Skip to main content
EPSS 0.3%top 80%

CVE-2026-71281: CWE-502 in huggingface peft

0
High
Published: 08/05/2026 (08/05/2026, 12:26:27 UTC)
Source: CVE Database V5
Vendor/Project: huggingface
Product: peft

Description

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.

CVSS v3.1

Score 8.8high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

huggingface

peft

Affected versions
>=0 <=0.19.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/12/2026, 14:34:44 UTC

Technical Analysis

The vulnerability in Hugging Face peft affects the LoRA-GA and CorDA initialization modules, specifically in the source files src/peft/tuners/lora/corda.py (around lines 102 and 163) and src/peft/tuners/lora/loraga.py (around line 101). These modules invoke torch.load on cache or covariance files specified in configuration without the weights_only=True argument, which is intended to restrict deserialization to tensor weights only. By bypassing the safe-loading wrapper used elsewhere in the codebase, this flaw introduces a risk of unsafe deserialization (CWE-502), which can lead to arbitrary code execution or other impacts if maliciously crafted files are loaded.

Potential Impact

The vulnerability allows an attacker to potentially execute arbitrary code or cause denial of service by supplying maliciously crafted cache or covariance files that are deserialized unsafely. The CVSS 3.1 score of 8.8 (high severity) reflects network attack vector, low attack complexity, no privileges required, user interaction required, and high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid loading untrusted or unauthenticated cache or covariance files with the affected modules. Monitoring official Hugging Face channels for updates or patches is recommended.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
TuranSec
Date Reserved
2026-08-05T12:23:34.968Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a7336e5bf8831d539ed926f

Added to database: 08/05/2026, 13:13:09 UTC

Last enriched: 08/12/2026, 14:34:44 UTC

Last updated: 09/18/2026, 22:01:37 UTC

Views: 36

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses