{"data":{"id":"82c973c1-7235-46f3-bd9a-b0708755764f","title":"CVE-2025-6921: The huggingface/transformers library, versions prior to 4.53.0, is vulnerable to Regular Expression Denial of Service…","summary":"CVE-2025-6921 affects the huggingface/transformers library before version 4.53.0. Malicious regular expressions in the include_in_weight_decay and exclude_from_weight_decay lists of the AdamWeightDecay optimizer, processed by the _do_use_weight_decay method, can trigger catastrophic backtracking during re.search. An attacker who controls those patterns can drive CPU use to 100%, hanging the machine learning task and making services unresponsive.","solution":"N/A -- no mitigation discussed in source.","labels":["security"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-6921","publishedAt":"2025-09-23T18:15:41.387Z","cveId":"CVE-2025-6921","cweIds":["CWE-400"],"cvssScore":"7.5","cvssSeverity":"high","severity":"high","attackType":["denial_of_service"],"issueType":"vulnerability","affectedPackages":["transformers@< 4.53.0 (fixed: 4.53.0)"],"affectedPackageNames":["transformers"],"affectedPackageRefs":["pypi:transformers"],"affectedVendors":["HuggingFace"],"affectedVendorsRaw":["huggingface/transformers"],"classifierModel":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2","headline":"huggingface/transformers ReDoS in AdamWeightDecay optimizer via regex patterns","headlinePromptVersion":"h1","cvssVector":null,"attackVector":null,"attackComplexity":null,"privilegesRequired":null,"userInteraction":null,"exploitMaturity":"unknown","epssScore":0.00511,"epssCheckedAt":"2026-11-04T12:08:33.690Z","kevDateAdded":null,"advisoryAliases":["GHSA-4w7r-h757-3r74"],"affectedPackagesSource":"ghsa","affectedPackagesCheckedAt":"2026-10-10T03:52:36.717Z","patchAvailable":true,"disclosureDate":null,"fixReleasedAt":"2025-06-26T16:10:51.505Z","daysToFix":-89,"fixCheckedAt":"2026-10-29T21:43:37.330Z","capecIds":["CAPEC-125","CAPEC-130"],"crossRefCount":0,"attackSophistication":"trivial","impactType":["availability"],"aiComponentTargeted":"framework","llmSpecific":false,"classifierConfidence":0.95,"researchCategory":null,"atlasIds":null,"fixes":[{"ecosystem":"pypi","name":"transformers","fixedVersion":"4.53.0","matchedVersion":"4.53.0","fixReleasedAt":"2025-06-26T16:10:51.505Z","daysToFix":-89,"match":"ecosystem","source":"tracked","status":"found","checkedAt":"2026-10-29T21:43:37.178Z"}]}}