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.
Published: 2026-08-05
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the LoRA‑GA and CorDA initialization modules of Hugging Face peft, where torch.load is called on cache or covariance files specified in the configuration without the weights_only=True argument. This omission bypasses the library’s safe-loading wrapper and allows full pickle deserialization, enabling an attacker who can supply a crafted cache or covariance file—such as one hosted on a shared network or embedded within a malicious model—to execute arbitrary code during model loading, effectively gaining the privileges of the running process. The flaw is a classic deserialization vulnerability (CWE‑502).

Affected Systems

All installations of the Hugging Face peft library that include the LoRA‑GA and CorDA modules are affected; specific version details are not supplied, so any deployment using the current code base is at risk. The vulnerability is present wherever these modules are used to load model configuration files from local or remote locations.

Risk and Exploitability

The CVSS score of 8.8 signals high severity, and the EPSS score of 0.00329 denotes an extremely low but non‑zero probability of exploitation. The absence of a KEV listing does not diminish the potential impact; the flaw allows code execution simply by supplying a malicious cache or covariance file. The likely attack vector is the loading of a privileged file during model initialization, inferred from the description that a shared or downloaded LoRA‑GA or CorDA cache could be used. An attacker with the ability to provide such a file—either by hosting it on a shared network or by compromising the file system—can trigger the flaw, compromising confidentiality, integrity, and availability of the affected system.

Generated by OpenCVE AI on August 10, 2026 at 20:59 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Hugging Face peft library to a release that sets weights_only=True in the torch.load() calls in the LoRA‑GA and CorDA modules
  • If an immediate upgrade is not feasible, modify the source files (src/peft/tuners/lora/corda.py and src/peft/tuners/lora/loraga.py) to add the weights_only=True argument in the problematic torch.load() invocations
  • Restrict access to the cache and covariance files used by the library, ensuring they are only sourced from trusted locations or validated before loading

Generated by OpenCVE AI on August 10, 2026 at 20:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 12:00:00 +0000

Type Values Removed Values Added
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. 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.
Title peft - Unsafe Deserialization via torch.load() Without weights_only in LoRA-GA and CorDA Modules peft Unsafe Deserialization via torch.load() Without weights_only in LoRA-GA and CorDA Modules

Mon, 10 Aug 2026 11:45:00 +0000

Type Values Removed Values Added
Title peft Unsafe Deserialization via torch.load() Without weights_only in LoRA-GA and CorDA Modules peft - Unsafe Deserialization via torch.load() Without weights_only in LoRA-GA and CorDA Modules

Fri, 07 Aug 2026 10:30:00 +0000

Type Values Removed Values Added
First Time appeared Huggingface
Huggingface peft
Vendors & Products Huggingface
Huggingface peft

Thu, 06 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Wed, 05 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 05 Aug 2026 13:15:00 +0000

Type Values Removed Values Added
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.
Title peft Unsafe Deserialization via torch.load() Without weights_only in LoRA-GA and CorDA Modules
Weaknesses CWE-502
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}


Subscriptions

Huggingface Peft
cve-icon MITRE

Status: PUBLISHED

Assigner: TuranSec

Published:

Updated: 2026-08-10T11:47:04.582Z

Reserved: 2026-08-05T12:23:34.968Z

Link: CVE-2026-71281

cve-icon Vulnrichment

Updated: 2026-08-05T15:51:22.177Z

cve-icon NVD

Status : Received

Published: 2026-08-05T13:24:52.723

Modified: 2026-08-10T12:17:30.680

Link: CVE-2026-71281

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-05T12:26:27Z

Links: CVE-2026-71281 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T21:00:04Z

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data