SCA: security update for transformers (GHSA-29pf-2h5f-8g72)

high Tenable Cloud Security Plugin ID 444242

Description

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

- A critical remote code execution vulnerability exists in all versions of the HuggingFace transformers
library prior to version 5.3.0. The vulnerability allows an attacker to craft a malicious `config.json`
file containing the `_attn_implementation_internal` field set to an attacker-controlled HuggingFace Hub
repository ID. When a victim loads this model using the standard `AutoModelForCausalLM.from_pretrained()`
API, the library downloads and executes arbitrary Python code from the attacker's repository with the
victim's full OS privileges. This issue arises due to unfiltered deserialization of configuration
attributes, insufficient sanitization of internal fields, and unsandboxed execution of downloaded kernels.
The vulnerability bypasses the `trust_remote_code` security mechanism, is invisible to the victim, and
exploits the standard documented usage pattern, making it particularly severe. Users are advised to
upgrade to version 5.3.0 or later to mitigate this issue. (CVE-2026-4372)

Solution

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

See Also

https://github.com/advisories/GHSA-29pf-2h5f-8g72

Plugin Details

Severity: High

ID: 444242

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 7/1/2026

Updated: 7/1/2026

Risk Information

VPR

Risk Factor: High

Score: 7.6

Percentile: 98.47

Vendor

Vendor Severity: High

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-4372

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: 5/26/2026

Vulnerability Publication Date: 5/24/2026

Reference Information

CVE: CVE-2026-4372