CVE-2025-6921
Fix Status by Distribution
Fixed in 0 of 27 tracked Linux releases
Fix evidence last checked: 2026-10-15 12:22 UTC
Get alerted when your releases are fixedNo fix evidence found:
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.
Exploit evidence
Last checked: 2026-10-11 20:35 UTC
Proof of concept · CISA Coordinator (Assessed 2025-09-23 14:56 UTC)
Exploit reference · [email protected] · View external evidence (Observed 2026-10-11 20:35 UTC)