Transformers Regular Expression Denial of Service (ReDoS) vulnerability
CVE-2025-1194 · GHSA-fpwr-67px-3qhx · published 2025-04-29 · updated 2025-08-04
- Severity
- Medium
- CVSS score
- 4.3
- Chance of exploitation (EPSS)
- 0.49%
- Fixed in
- 4.50.0
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, specifically in the file tokenizationgptneox_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).
Upgrade transformers to 4.50.0 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| transformers | PyPI | < 4.50.0 | 4.50.0 |
- HightsParticles: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Leads to Remote DoS@tsparticles/mcp-server
- HighMissing request-wide media budget allows single-request frontend resource exhaustionvllm
- HighMCP TypeScript SDK: HTTP server transports and handlers did not limit request body size or JSON-RPC batch length@modelcontextprotocol/hono, @modelcontextprotocol/node, @modelcontextprotocol/sdk, @modelcontextprotocol/server
- HighvLLM : DoS via unvalidated mm_processor_kwargs in multimodal image processors (Isaac, InternVL, H2OVL, etc.)vllm
- HighMCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validation@modelcontextprotocol/sdk, @modelcontextprotocol/server
- HighFrame-count cap bypass in VideoMediaIO.load_base64 for video/jpeg via media_io_kwargs.video.num_framesvllm
- Criticaltransformers has a Deserialization of Untrusted Data vulnerabilitytransformers
- HighHugging Face Transformers downloads custom generation code before trust consenttransformers
- HighTransformers save_pretrained path traversal allows arbitrary file writes through chat template namestransformers
- Highhuggingface/transformers: Arbitrary Code Execution During Model Initialization in the LightGlue Model Loading Pathtransformers
- HighHuggingFace transformers vulnerable to remote code executiontransformers
- HighDeserialization of Untrusted Data in Hugging Face Transformerstransformers
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.