SCA: security update for transformers (GHSA-9356-575x-2w9m)

medium Tenable Cloud Security Plugin ID 431693

Description

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

- A Regular Expression Denial of Service (ReDoS) vulnerability exists in the Hugging Face Transformers
library, specifically in the `convert_tf_weight_name_to_pt_weight_name()` function. This function,
responsible for converting TensorFlow weight names to PyTorch format, uses a regex pattern
`/[^/]*___([^/]*)/` that can be exploited to cause excessive CPU consumption through crafted input strings
due to catastrophic backtracking. The vulnerability affects versions up to 4.51.3 and is fixed in version
4.53.0. This issue can lead to service disruption, resource exhaustion, and potential API service
vulnerabilities, impacting model conversion processes between TensorFlow and PyTorch formats.
(CVE-2025-5197)

See Also

https://github.com/advisories/GHSA-9356-575x-2w9m

Plugin Details

Severity: Medium

ID: 431693

Version: Revision 1.10

Type: Local

Family: SCA Checks

Published: 8/6/2025

Updated: 7/2/2026

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

Risk Information

VPR

Risk Factor: Low

Score: 1.2

Percentile: 0.01

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.9

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

CVSS Score Source: CVE-2025-5197

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Temporal Score: 4.8

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

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

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 8/6/2025

Vulnerability Publication Date: 8/6/2025

Reference Information

CVE: CVE-2025-5197