CVE-2026-71281 PUBLISHED

peft Unsafe Deserialization via torch.load() Without weights_only in LoRA-GA and CorDA Modules

Assigner: TuranSec
Reserved: 05.08.2026 Published: 05.08.2026 Updated: 05.08.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS Score: 8.8

Product Status

Vendor huggingface
Product peft
Versions Default: unaffected
  • affected from 0 to 0.19.1 (incl.)

Credits

  • Saidakbarxon Maxsudxonov finder

References

Problem Types

  • CWE-502 CWE