CVE catalog

CVE-2025-6921

python313-transformers-5.15.0-1.1 on GA media

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.51% · Oct 25, 2026

The huggingface/transformers library, is vulnerable to a 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. transformers: Regular Expression Denial of Service (ReDoS) in huggingface/transformers The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
PyPItransformersNot reported4.53.0fixed
PyPItransformersNot reported4.53.0fixed
CpetransformersNot reported4.53.0fixed
Opensusepython-transformerstumbleweed5.15.0-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
PyPItransformersPyPINot reported4.53.0Not reportedPYSEC-2026-1980Not reported
PyPItransformersPyPINot reported4.53.0Not reportedGHSA-4W7R-H757-3R74Not reported
CpetransformerscpeNot reported4.53.0Not reportedNVD-CVE-2025-6921Not reported
Opensusepython-transformersrpmtumbleweed5.15.0-1.1Not reportedOPENSUSE-SU-2026:11499-1Not reported

OpenFactory catalog packages

[openSUSE Tumbleweed]

  • Source package: [python-transformers]

    Details (1)
    • 5.16.1-1.1 · noarch · tumbleweed

      Unknown · Fixed: 5.15.0-1.1

      Version impact unknown

      pypi · python-transformers · opensuse · tumbleweed

  • Source package: [python-transformers]

    Details (1)
    • 5.16.1-1.1 · noarch · tumbleweed

      Unknown · Fixed: 5.15.0-1.1

      Version impact unknown

      pypi · python-transformers · opensuse · tumbleweed

Observed:

References