SCA: security update for transformers (GHSA-4w7r-h757-3r74)

high Tenable Self-Hosted Container Security Plugin ID 435404

Description

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

- The huggingface/transformers library, versions prior to 4.53.0, is vulnerable to Regular Expression Denial
of Service (ReDoS) in the AdamWeightDecay optimizer. The vulnerability arises from the
_do_use_weight_decay method, which processes user-controlled regular expressions in the
include_in_weight_decay and exclude_from_weight_decay lists. Malicious regular expressions can cause
catastrophic backtracking during the re.search call, leading to 100% CPU utilization and a denial of
service. This issue can be exploited by attackers who can control the patterns in these lists, potentially
causing the machine learning task to hang and rendering services unresponsive. (CVE-2025-6921)

See Also

https://github.com/advisories/GHSA-4w7r-h757-3r74

Plugin Details

Severity: High

ID: 435404

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 9/23/2025

Updated: 7/2/2026

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

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.69

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.1

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

CVSS Score Source: CVE-2025-6921

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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: 9/23/2025

Vulnerability Publication Date: 9/23/2025

Reference Information

CVE: CVE-2025-6921

cwe: CWE-400