THREAT OPS › Threat News › [NVD] CVE-2025-6921 (HIGH 7.5) — The huggingface/transformers library, versions prior to 4.53.0, is vulnerable to 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 th
[NVD] CVE-2025-6921 (HIGH 7.5) — The huggingface/transformers library, versions prior to 4.53.0, is vulnerable to 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 th
CVE-2025-6921 CVSS: 7.5 HIGH Published: 2025-09-23T14:15:41.387
The huggingface/transformers library, versions prior to 4.53.0, is vulnerable to 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
Indicators of compromise
- CVE-2025-6921cve
Original source: https://nvd.nist.gov/vuln/detail/CVE-2025-6921