Skip to content
MediumVulnerability

CVE-2025-3263: Hugging Face Transformers ReDoS in get_configuration_file()

Identifier
CVE-2025-3263
Published
Record updated
View JSON
Affected
  • transformers < 4.51.0
Fixed in
4.51.0
  • released April 5, 2025, 93 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

A Regular Expression Denial of Service (ReDoS) flaw in the Hugging Face Transformers library affects version 4.49.0, specifically the get_configuration_file() function in the transformers.configuration_utils module. The regex pattern config\.(.*)\.json can be triggered by crafted input strings, causing catastrophic backtracking and excessive CPU consumption, which disrupts model serving, exhausts resources, and increases latency.

Mitigation

Fixed in 4.51.0.