SCA: security update for transformers (GHSA-jjph-296x-mrcr)

medium Tenable Self-Hosted Container Security Plugin ID 428310

Description

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

- A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face
Transformers library, specifically in the `get_imports()` function within `dynamic_module_utils.py`. This
vulnerability affects versions 4.49.0 and is fixed in version 4.51.0. The issue arises from a regular
expression pattern `\s*try\s*:.*?except.*?:` used to filter out try/except blocks from Python code, which
can be exploited to cause excessive CPU consumption through crafted input strings due to catastrophic
backtracking. This vulnerability can lead to remote code loading disruption, resource exhaustion in model
serving, supply chain attack vectors, and development pipeline disruption. (CVE-2025-3264)

See Also

https://github.com/advisories/GHSA-jjph-296x-mrcr

Plugin Details

Severity: Medium

ID: 428310

Version: Revision 1.9

Type: Local

Family: SCA Checks

Published: 7/8/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-3264

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: 7/7/2025

Vulnerability Publication Date: 7/7/2025

Reference Information

CVE: CVE-2025-3264