Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
peft Unsafe Deserialization via torch.load() Without weights_only in LoRA-GA and CorDA Modules
Vulnerability 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 Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Vulnerability Type
可信数据的反序列化
Vulnerability Title
Hugging Face PEFT 反序列化注入漏洞
Vulnerability Description
Hugging Face PEFT是Hugging Face公司的一个参数高效微调模型库。 Hugging Face PEFT 0.19.1及之前版本存在反序列化注入漏洞,该漏洞源于src/peft/tuners/lora/corda.py和src/peft/tuners/lora/loraga.py中的LoRA-GA和CorDA初始化模块在加载配置指定的缓存/协方差文件时调用torch.load()且未设置weights_only=True,绕过安全加载包装器,导致反序列化恶意文件时可执行任意代码。
CVSS Information
N/A
Vulnerability Type
N/A