Inefficient Regular Expression Complexity Affecting tritonserver-backend-tensorrtllm-24.04 package, versions <0.9.0-r4


Severity

Recommended
low

Based on default assessment until relevant scores are available.

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-TRITONSERVERBACKENDTENSORRTLLM2404-9538169
  • published27 Mar 2025
  • disclosed20 Mar 2025

Introduced: 20 Mar 2025

NewCVE-2024-12720  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade Chainguard tritonserver-backend-tensorrtllm-24.04 to version 0.9.0-r4 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream tritonserver-backend-tensorrtllm-24.04 package and not the tritonserver-backend-tensorrtllm-24.04 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 identified in the huggingface/transformers library, specifically in the file tokenization_nougat_fast.py. The vulnerability occurs in the post_process_single() function, where a regular expression processes specially crafted input. The issue stems from the regex exhibiting exponential time complexity under certain conditions, leading to excessive backtracking. This can result in significantly high CPU usage and potential application downtime, effectively creating a Denial of Service (DoS) scenario. The affected version is v4.46.3 (latest).