HIGH🇵🇱 Wersja polska

CVE-2026-1839

CVSS 7.8v3.1pub. 2026-04-07upd. 2026-04-28

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.

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Huggingface Transformers

    APP
    Huggingface
    5.0.0< 5.0.0
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
RCEDeserialization
CWE
References

Related vulnerabilities

CVE-2026-5241CRITICAL9.6PL ✓ten sam produkt

RCE w Huggingface Transformers — obejście trust_remote_code w LightGlue

CVE-2024-3568CRITICAL9.6PL ✓ten sam produkt

RCE przez deserializację w bibliotece Huggingface Transformers

CVE-2026-4372HIGH7.8ten sam produkt

A critical remote code execution vulnerability exists in all versions of the HuggingFace transformers library ...

CVE-2025-14924HIGH7.8ten sam produkt

Hugging Face Transformers megatron_gpt2 Deserialization of Untrusted Data Remote Code Execution Vulnerability....

CVE-2025-14920HIGH7.8ten sam produkt

Hugging Face Transformers Perceiver Model Deserialization of Untrusted Data Remote Code Execution Vulnerabilit...