
CVE catalog
CVE-2025-6921
python313-transformers-5.15.0-1.1 on GA media
- Severity
- High · CVSS 7.5
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| PyPI | transformers | Not reported | 4.53.0 | fixed |
| PyPI | transformers | Not reported | 4.53.0 | fixed |
| Cpe | transformers | Not reported | 4.53.0 | fixed |
| Opensuse | python-transformers | tumbleweed | 5.15.0-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| PyPI | transformers | PyPI | Not reported | 4.53.0 | Not reported | PYSEC-2026-1980 | Not reported |
| PyPI | transformers | PyPI | Not reported | 4.53.0 | Not reported | GHSA-4W7R-H757-3R74 | Not reported |
| Cpe | transformers | cpe | Not reported | 4.53.0 | Not reported | NVD-CVE-2025-6921 | Not reported |
| Opensuse | python-transformers | rpm | tumbleweed | 5.15.0-1.1 | Not reported | OPENSUSE-SU-2026:11499-1 | Not reported |
OpenFactory catalog packages
[openSUSE Tumbleweed]
- [python313-transformers]Unknown
Source package: [python-transformers]
Details (1)
5.16.1-1.1· noarch · tumbleweedUnknown · Fixed:
5.15.0-1.1Version impact unknown
pypi · python-transformers · opensuse · tumbleweed
- [python314-transformers]Unknown
Source package: [python-transformers]
Details (1)
5.16.1-1.1· noarch · tumbleweedUnknown · Fixed:
5.15.0-1.1Version impact unknown
pypi · python-transformers · opensuse · tumbleweed
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11499-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2025-6921]
- [https://osv.dev/vulnerability/GHSA-4w7r-h757-3r74]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:11499-1]
- [https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-6921.json]
[FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]