CVE-2026-71281

Source
https://cve.org/CVERecord?id=CVE-2026-71281
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-71281.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-71281
Published
2026-08-05T12:26:27.376Z
Modified
2026-08-07T03:30:53.721992573Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
peft Unsafe Deserialization via torch.load() Without weights_only in LoRA-GA and CorDA Modules
Details

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 weightsonly=True, bypassing peft's own safe-loading wrapper used elsewhere in the codebase. Because torch.load() without weightsonly=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.

Database specific
{
    "cwe_ids": [
        "CWE-502"
    ],
    "cna_assigner": "TuranSec",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71281.json"
}
References

Affected packages

Git / github.com/huggingface/peft

Affected ranges

Type
GIT
Repo
https://github.com/huggingface/peft
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.19.1"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

v0.*
v0.10.0
v0.11.0
v0.12.0
v0.13.0
v0.14.0
v0.15.0
v0.16.0
v0.17.0
v0.18.0
v0.18.0.rc0
v0.19.0
v0.19.1
v0.6.0
v0.7.0
v0.7.1
v0.8.0
v0.8.1
v0.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-71281.json"