Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2026-1839 Details

Description

A vulnerability in the HuggingFace Transformers library, specifically in the `Trainer` class, allows for arbitrary code execution. The `_load_rng_state()` method in `src/transformers/trainer.py` at line 3059 calls `torch.load()` without the `weights_only=True` parameter. This issue affects all versions of the library supporting `torch>=2.2` when used with PyTorch versions below 2.6, as the `safe_globals()` context manager provides no protection in these versions. An attacker can exploit this vulnerability by supplying a malicious checkpoint file, such as `rng_state.pth`, which can execute arbitrary code when loaded. The issue is resolved in version v5.0.0rc3.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-502Deserialization of Untrusted Data[email protected]

Affected Products

ProductVersions
huggingface transformers
< 5.0.0
5.0.0 rc0
5.0.0 rc1
5.0.0 rc2

CPE

  • cpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*:*
  • cpe:2.3:a:huggingface:transformers:5.0.0:rc0:*:*:*:*:*:*
  • cpe:2.3:a:huggingface:transformers:5.0.0:rc1:*:*:*:*:*:*
  • cpe:2.3:a:huggingface:transformers:5.0.0:rc2:*:*:*:*:*:*

Remediation

  • No remediation found in references.

Change History

6 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2026-1839
NVD Published Date:
Apr 7, 2026
NVD Last Modified:
Oct 26, 2026
Source:
[email protected]
CVE-2026-1839 Details - Not Deferred