8.8high
peft Unsafe Deserialization via torch.load() Without weights_only in LoRA-GA and CorDA Modules
- Severity
- 8.8high CVSS:3.1 by TuranSec
- Exploit likelihood
- 0.27% (higher than 20% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- TuranSec
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| huggingface peft | up to 0.19.1 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Los módulos de inicialización de LoRA-GA y CorDA de peft de Hugging Face (src/peft/tuners/lora/corda.py líneas ~102 y ~163, y src/peft/tuners/lora/loraga.py línea ~101) llaman a torch.load() en archivos de caché/covarianza especificados en la configuración sin weights_only=True, eludiendo el propio envoltorio de carga segura de peft utilizado en otras partes de la base de código. Debido a que torch.load() sin weights_only=True realiza una deserialización completa de pickle, la carga de un archivo de caché o covarianza malicioso (por ejemplo, una caché de LoRA-GA o CorDA compartida/descargada) resulta en ejecución de código arbitrario.
References
| https://github.com/huggingface/peft | third-party-advisory | |
| https://github.com/huggingface/peft/blob/main/src/peft/tuners/lora/corda.py | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-71281 changed 2026-08-10 | CVE Terms of Use |
| NVD | CVE-2026-71281 changed 2026-10-23 | Public domain |