Skip to main content
CVE-2025-3263VulnerabilityPublished

CVE-2025-3263: huggingface/transformers · ReDoS

Affects huggingface/transformersSource CVE Database V5

0

Not known to be exploited · CVSS 5.3 Medium : upgrade to 4.51.0 when convenient.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 42% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 4.51.0
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Upgrade transformers to 4.51.0.

Affected software

ProductAffectedFixed in
PyPItransformerspkg:pypi/transformersOther threatsAffected
  • >=4.49.0 <4.51.0
Fixed in
  • 4.51.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

European organizations should promptly upgrade the Hugging Face Transformers library to version 4.51.0 or later, where the vulnerability is fixed. If immediate upgrading is not possible, implement input validation or sanitization to restrict or reject suspicious configuration file names that could trigger the vulnerable regex pattern. Monitoring CPU usage and application response times can help detect potential exploitation attempts. Employing runtime application self-protection (RASP) or Web Application Firewalls (WAFs) with rules to detect abnormal request patterns targeting configuration file loading endpoints may provide additional defense. Developers should review and refactor any custom regular expressions in their codebase to avoid similar inefficiencies. Finally, incorporating fuzz testing and performance profiling for regex patterns during development can prevent future ReDoS vulnerabilities.

Description

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically in the `get_configuration_file()` function within the `transformers.configuration_utils` module. The affected version is 4.49.0, and the issue is resolved in version 4.51.0. The vulnerability arises from the use of a regular expression pattern `config\.(.*)\.json` that can be exploited to cause excessive CPU consumption through crafted input strings, leading to catastrophic backtracking. This can result in model serving disruption, resource exhaustion, and increased latency in applications using the library.

References

Community reviews

Loading reviews…