SCA: security update for transformers (GHSA-69w3-r845-3855)

high Tenable Cloud Security Plugin ID 440020

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-1839)

Solution

Update the transformers library and its related packages to version 5.0.0rc3 or later.

See Also

https://github.com/advisories/GHSA-69w3-r845-3855

Plugin Details

Severity: High

ID: 440020

Version: Revision 1.9

Type: Local

Family: SCA Checks

Published: 4/8/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.88

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: High

Base Score: 7.2

Temporal Score: 5.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2026-1839

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 7

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/7/2026

Vulnerability Publication Date: 4/7/2026

Reference Information

CVE: CVE-2026-1839

cwe: CWE-502