CVE-2026-71281: CWE-502 in huggingface peft
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.
AI Analysis
Technical Summary
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.
CVE-2026-71281: CWE-502 in huggingface 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
Affected software
huggingface
peft
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.