Inefficient Regular Expression Complexity Affecting text-generation-inference package, versions <3.3.6-r0


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.07% (24th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Inefficient Regular Expression Complexity vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CHAINGUARDLATEST-TEXTGENERATIONINFERENCE-13600375
  • published17 Oct 2025
  • disclosed11 Jul 2025

Introduced: 11 Jul 2025

CVE-2025-3933  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Chainguard text-generation-inference to version 3.3.6-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream text-generation-inference package and not the text-generation-inference package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically within the DonutProcessor class's token2json() method. This vulnerability affects versions 4.50.3 and earlier, and is fixed in version 4.52.1. The issue arises from the regex pattern &lt;s_(.*?)&gt; which can be exploited to cause excessive CPU consumption through crafted input strings due to catastrophic backtracking. This vulnerability can lead to service disruption, resource exhaustion, and potential API service vulnerabilities, impacting document processing tasks using the Donut model.

CVSS Base Scores

version 3.1