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. 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.
AI Analysis
Technical Summary
The vulnerability arises because the LoRA-GA and CorDA initialization modules in the peft library invoke torch.load() without the weights_only=True parameter on cache or covariance files specified in configuration. Normally, peft uses a safe-loading wrapper to prevent unsafe deserialization, but this code path bypasses that protection. Since torch.load() without weights_only=True performs full pickle deserialization, an attacker who can supply a malicious cache or covariance file (for example, via a shared or downloaded LoRA-GA or CorDA cache) can execute arbitrary code during model initialization.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code on the system running the vulnerable peft library by tricking it into loading a malicious cache or covariance file. This can lead to full compromise of the affected system, including confidentiality, integrity, and availability impacts as indicated by the CVSS vector (C:H/I:H/A:H).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid loading untrusted or shared LoRA-GA or CorDA cache or covariance files. Monitoring for updates from Hugging Face regarding a safe-loading patch 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. 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.
CVSS v3.1
Score 8.8high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because the LoRA-GA and CorDA initialization modules in the peft library invoke torch.load() without the weights_only=True parameter on cache or covariance files specified in configuration. Normally, peft uses a safe-loading wrapper to prevent unsafe deserialization, but this code path bypasses that protection. Since torch.load() without weights_only=True performs full pickle deserialization, an attacker who can supply a malicious cache or covariance file (for example, via a shared or downloaded LoRA-GA or CorDA cache) can execute arbitrary code during model initialization.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary code on the system running the vulnerable peft library by tricking it into loading a malicious cache or covariance file. This can lead to full compromise of the affected system, including confidentiality, integrity, and availability impacts as indicated by the CVSS vector (C:H/I:H/A:H).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid loading untrusted or shared LoRA-GA or CorDA cache or covariance files. Monitoring for updates from Hugging Face regarding a safe-loading patch 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
- Remediation Level
- null
Threat ID: 6a7336e5bf8831d539ed926f
Added to database: 08/05/2026, 13:13:09 UTC
Last enriched: 08/05/2026, 13:27:38 UTC
Last updated: 08/05/2026, 22:45:03 UTC
Views: 6
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.