Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. transformers
  4. ›
  5. CVE-2025-1194

CVE-2025-1194: Transformers Regular Expression Denial of Service (ReDoS) vulnerability

April 29, 2025 (updated August 4, 2025)

A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, specifically in the file tokenization_gpt_neox_japanese.py of the GPT-NeoX-Japanese model. The vulnerability occurs in the SubWordJapaneseTokenizer class, where regular expressions process specially crafted inputs. The issue stems from a regex exhibiting exponential complexity under certain conditions, leading to excessive backtracking. This can result in high CPU usage and potential application downtime, effectively creating a Denial of Service (DoS) scenario. The affected version is v4.48.1 (latest).

References

  • github.com/advisories/GHSA-fpwr-67px-3qhx
  • github.com/huggingface/transformers
  • github.com/huggingface/transformers/commit/92c5ca9dd70de3ade2af2eb835c96215cc50e815
  • huntr.com/bounties/86f58dcd-683f-4adc-a735-849f51e9abb2
  • nvd.nist.gov/vuln/detail/CVE-2025-1194

Code Behaviors & Features

Detect and mitigate CVE-2025-1194 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.50.0

Fixed versions

  • 4.50.0

Solution

Upgrade to version 4.50.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

pypi/transformers/CVE-2025-1194.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:15 +0000.