CyberSecBulletin

Inefficient Regular Expression Complexity

CWE-1333

The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.

We track 263 vulnerabilities of this type. 100% are rated high or critical, and the average CVSS score is 7.6.

How this weakness is prevented

  • Architecture and Design: Use regular expressions that do not support backtracking, e.g. by removing nested quantifiers.
  • System Configuration: Set backtracking limits in the configuration of the regular expression implementation, such as PHP's pcre.backtrack_limit. Also consider limits on execution time for the process.
  • Implementation: Do not use regular expressions with untrusted input. If regular expressions must be used, avoid using backtracking in the expression.
  • Implementation: Limit the length of the input that the regular expression will process.

Latest Inefficient Regular Expression Complexity vulnerabilities

  • 7.5 High severity

    Apache Traffic Control: Inefficient Regular Expression Complexity

    CVE-2025-61581Apache

    ** UNSUPPORTED WHEN ASSIGNED ** Inefficient Regular Expression Complexity vulnerability in Apache Traffic Control. This issue affects Apache Traffic Control: all versions. People with access to the management interface of the Traffic Router component could spe

  • 7.5 High severity

    sinatra: Inefficient Regular Expression Complexity

    CVE-2025-61921Sinatra

    Sinatra is a domain-specific language for creating web applications in Ruby. In versions prior to 4.2.0, there is a denial of service vulnerability in the `If-Match` and `If-None-Match` header parsing component of Sinatra, if the `etag` method is used when con

  • 7.5 High severity

    huggingface/transformers: Inefficient Regular Expression Complexity

    CVE-2025-6638Huggingface

    A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the Hugging Face Transformers library, specifically affecting the MarianTokenizer's `remove_language_code()` method. This vulnerability is present in version 4.52.4 and has been fix

  • 8.7 High severity

    Cattown: Uncontrolled Resource Consumption

    CVE-2025-58451IEatUranium238

    Cattown is a JavaScript markdown parser. Versions prior to 1.0.2 used regular expressions with inefficient, potentially exponential worst-case complexity. This could cause excessive CPU usage due to excessive backtracking on crafted inputs. In turn, the excess

  • 7.5 High severity

    Concert Software: Inefficient Regular Expression Complexity

    CVE-2025-33090IBM

    IBM Concert Software 1.0.0 through 1.1.0 could allow a remote attacker to cause a denial of service using a specially crafted regular expression that would cause excessive resource consumption.

  • 7.5 High severity

    copyparty: Uncontrolled Resource Consumption

    CVE-2025-547969001

    Copyparty is a portable file server. Versions prior to 1.18.9, the filter parameter for the "Recent Uploads" page allows arbitrary RegExes. If this feature is enabled (which is the default), an attacker can craft a filter which deadlocks the server. This is fi

  • 7.5 High severity

    Yarn: Inefficient Regular Expression Complexity

    CVE-2025-8262Yarnpkg

    A vulnerability was found in yarnpkg Yarn up to 1.22.22. It has been classified as problematic. Affected is the function explodeHostedGitFragment of the file src/resolvers/exotics/hosted-git-resolver.js. The manipulation leads to inefficient regular expression

  • 8.7 High severity

    Calibre Web: Inefficient Regular Expression Complexity

    CVE-2025-6998Calibre Web

    ReDoS in strip_whitespaces() function in cps/string_helper.py in Calibre Web and Autocaliweb allows unauthenticated remote attackers to cause denial of service via specially crafted username parameter that triggers catastrophic backtracking during login. This

  • 7.5 High severity

    fastapi-guard: Inefficient Regular Expression Complexity

    CVE-2025-54365Rennf93

    fastapi-guard is a security library for FastAPI that provides middleware to control IPs, log requests, detect penetration attempts and more. In version 3.0.1, the regular expression patched to mitigate the ReDoS vulnerability by limiting the length of string f

  • 7.5 High severity

    fastapi-guard: Inefficient Regular Expression Complexity

    CVE-2025-53539Rennf93

    FastAPI Guard is a security library for FastAPI that provides middleware to control IPs, log requests, and detect penetration attempts. fastapi-guard's penetration attempts detection uses regex to scan incoming requests. However, some of the regex patterns use

  • 7.5 High severity

    huggingface/transformers: Inefficient Regular Expression Complexity

    CVE-2025-3262Huggingface

    A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the huggingface/transformers repository, specifically in version 4.49.0. The vulnerability is due to inefficient regular expression complexity in the `SETTING_RE` variable within th

  • 7.5 High severity

    hyper: Inefficient Regular Expression Complexity

    CVE-2025-7074Vercel

    A vulnerability classified as problematic has been found in vercel hyper up to 3.4.1. This affects the function expand/braceExpand/ignoreMap of the file hyper/bin/rimraf-standalone.js. The manipulation leads to inefficient regular expression complexity. It is

  • 7.5 High severity

    GitLab: Inefficient Regular Expression Complexity

    CVE-2024-4025GitLab

    A Denial of Service (DoS) condition has been discovered in GitLab CE/EE affecting all versions from 7.10 prior before 16.11.5, version 17.0 before 17.0.3, and 17.1 before 17.1.1. It is possible for an attacker to cause a denial of service using a crafted markd

  • 7.5 High severity

    vue-cli: Inefficient Regular Expression Complexity

    CVE-2025-5897Vuejs

    A vulnerability was found in vuejs vue-cli up to 5.0.8. It has been rated as problematic. This issue affects the function HtmlPwaPlugin of the file packages/@vue/cli-plugin-pwa/lib/HtmlPwaPlugin.js of the component Markdown Code Handler. The manipulation leads

  • 7.5 High severity

    taro: Inefficient Regular Expression Complexity

    CVE-2025-5896Tarojs

    A vulnerability was found in tarojs taro up to 4.1.1. It has been declared as problematic. This vulnerability affects unknown code of the file taro/packages/css-to-react-native/src/index.js. The manipulation leads to inefficient regular expression complexity.

  • 7.5 High severity

    Metabase: Inefficient Regular Expression Complexity

    CVE-2025-5895Metabase

    A vulnerability was found in Metabase 54.10. It has been classified as problematic. This affects the function parseDataUri of the file frontend/src/metabase/lib/dom.js. The manipulation leads to inefficient regular expression complexity. It is possible to init

  • 7.5 High severity

    RocketChat: Inefficient Regular Expression Complexity

    CVE-2025-5892RocketChat

    A vulnerability, which was classified as problematic, has been found in RocketChat up to 7.6.1. This issue affects the function parseMessage of the file /apps/meteor/app/irc/server/servers/RFC2813/parseMessage.js. The manipulation of the argument line leads to

  • 7.5 High severity

    huggingface/transformers: Inefficient Regular Expression Complexity

    CVE-2025-2099Huggingface

    A vulnerability in the `preprocess_string()` function of the `transformers.testing_utils` module in huggingface/transformers version v4.48.3 allows for a Regular Expression Denial of Service (ReDoS) attack. The regular expression used to process code blocks in

  • 7.5 High severity

    vllm: Inefficient Regular Expression Complexity

    CVE-2025-46560Vllm-project

    vLLM is a high-throughput and memory-efficient inference and serving engine for LLMs. Versions starting from 0.8.0 and prior to 0.8.5 are affected by a critical performance vulnerability in the input preprocessing logic of the multimodal tokenizer. The code dy

  • 7.5 High severity

    CAS: Uncontrolled Resource Consumption

    CVE-2025-3986Apereo

    A vulnerability was found in Apereo CAS 5.2.6. It has been declared as problematic. This vulnerability affects unknown code of the file cas-5.2.6\core\cas-server-core-configuration-metadata-repository\src\main\java\org\apereo\cas\metadata\rest\CasConfiguration

  • 7.5 High severity

    WP-Syntax: Inefficient Regular Expression Complexity

    CVE-2024-13926WP-Syntax

    The WP-Syntax WordPress plugin through 1.2 does not properly handle input, allowing an attacker to create a post containing a large number of tags, thereby exploiting a catastrophic backtracking issue in the regular expression processing to cause a DoS.

  • 7.5 High severity

    Ubuntu package linux-bluefield: Inefficient Regular Expression Complexity

    CVE-2023-0881Ubuntu

    Running DDoS on tcp port 22 will trigger a kernel crash. This issue is introduced by the backport of a commit regarding nft_lookup without the subsequent fixes that were introduced after this commit. The resolution of this CVE introduces those commits to the l

  • 7.5 High severity

    lunary-ai/lunary: Inefficient Regular Expression Complexity

    CVE-2024-8998Lunary-ai

    A Regular Expression Denial of Service (ReDoS) vulnerability exists in lunary-ai/lunary version git f07a845. The server uses the regex /{.*?}/ to match user-controlled strings. In the default JavaScript regex engine, this regex can take polynomial time to matc

  • 7.5 High severity

    lunary-ai/lunary: Inefficient Regular Expression Complexity

    CVE-2024-8789Lunary-ai

    Lunary-ai/lunary version git 105a3f6 is vulnerable to a Regular Expression Denial of Service (ReDoS) attack. The application allows users to upload their own regular expressions, which are then executed on the server side. Certain regular expressions can have

  • 7.5 High severity

    lunary-ai/lunary: Inefficient Regular Expression Complexity

    CVE-2024-8764Lunary-ai

    A vulnerability in lunary-ai/lunary, as of commit be54057, allows users to upload and execute arbitrary regular expressions on the server side. This can lead to a Denial of Service (DoS) condition, as certain regular expressions can cause excessive resource co

  • 7.5 High severity

    lunary-ai/lunary: Inefficient Regular Expression Complexity

    CVE-2024-8763Lunary-ai

    A Regular Expression Denial of Service (ReDoS) vulnerability exists in the lunary-ai/lunary repository, specifically in the compileTextTemplate function. The affected version is git be54057. An attacker can exploit this vulnerability by manipulating the regula

  • 7.5 High severity

    danswer-ai/danswer: Inefficient Regular Expression Complexity

    CVE-2024-7779Danswer-ai

    A vulnerability in danswer-ai/danswer version 1 allows an attacker to perform a Regular Expression Denial of Service (ReDoS) by manipulating regular expressions. This can significantly slow down the application's response time and potentially render it complet

  • 7.5 High severity

    huggingface/transformers: Inefficient Regular Expression Complexity

    CVE-2024-12720Huggingface

    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 expressio

  • 7.5 High severity

    gradio-app/gradio: Inefficient Regular Expression Complexity

    CVE-2024-10624Gradio-appEPSS 1.1%

    A Regular Expression Denial of Service (ReDoS) vulnerability exists in the gradio-app/gradio repository, affecting the gr.Datetime component. The affected version is git commit 98cbcae. The vulnerability arises from the use of a regular expression `^(?:\s*now\

  • 7.5 High severity

    h2oai/h2o-3: Inefficient Regular Expression Complexity

    CVE-2024-10550H2oai

    A vulnerability in the `/3/ParseSetup` endpoint of h2oai/h2o-3 version 3.46.0.1 allows for a denial of service (DoS) attack. The endpoint applies a user-specified regular expression to a user-controllable string. This can be exploited by an attacker to cause i

  • 7.5 High severity

    h2oai/h2o-3: Inefficient Regular Expression Complexity

    CVE-2024-10549H2oai

    A vulnerability in the `/3/Parse` endpoint of h2oai/h2o-3 version 3.46.0.1 allows for a denial of service (DoS) attack. The endpoint uses a user-specified string to construct a regular expression, which is then applied to another user-specified string. By send

  • 7.5 High severity

    parse-duration: Inefficient Regular Expression Complexity

    CVE-2025-25283Jkroso

    parse-duraton is software that allows users to convert a human readable duration to milliseconds. Versions prior to 2.1.3 are vulnerable to an event loop delay due to the CPU-bound operation of resolving the provided string, from a 0.5ms and up to ~50ms per on

  • 7.5 High severity

    koa: Inefficient Regular Expression Complexity

    CVE-2025-25200KoaJS

    Koa is expressive middleware for Node.js using ES2017 async functions. Prior to versions 0.21.2, 1.7.1, 2.15.4, and 3.0.0-alpha.3, Koa uses an evil regex to parse the `X-Forwarded-Proto` and `X-Forwarded-Host` HTTP headers. This can be exploited to carry out a

  • 7.5 High severity

    Engineering Lifecycle Optimization Publishing: Inefficient Regular Expression Complexity

    CVE-2024-41766IBM

    IBM Engineering Lifecycle Optimization - Publishing 7.0.2 and 7.0.3 could allow a remote attacker to cause a denial of service using a complex regular expression.

  • 7.7 High severity

    path-to-regexp: Inefficient Regular Expression Complexity

    CVE-2024-52798Pillarjs

    path-to-regexp turns path strings into a regular expressions. In certain cases, path-to-regexp will output a regular expression that can be exploited to cause poor performance. The regular expression that is vulnerable to backtracking can be generated in the 0

  • 7.5 High severity

    @eslint/plugin-kit: Inefficient Regular Expression Complexity

    CVE-2024-21539@eslint/plugin-kit

    Versions of the package @eslint/plugin-kit before 0.2.3 are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization. An attacker can increase the CPU usage and crash the program by exploiting this vulnerability.

  • 7.5 High severity

    cross-spawn: Inefficient Regular Expression Complexity

    CVE-2024-21538Cross-spawn

    Versions of the package cross-spawn before 6.0.6, from 7.0.0 and before 7.0.5 are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization. An attacker can increase the CPU usage and crash the program by crafting a very lar

  • 7.5 High severity

    rexml: Inefficient Regular Expression Complexity

    CVE-2024-49761RubyEPSS 1.42%

    REXML is an XML toolkit for Ruby. The REXML gem before 3.3.9 has a ReDoS vulnerability when it parses an XML that has many digits between &# and x...; in a hex numeric character reference (&#x...;). This does not happen with Ruby 3.2 or later. Ruby 3.1 is the

  • 7.5 High severity

    Znuny: Inefficient Regular Expression Complexity

    CVE-2024-48938Znuny

    Znuny before LTS 6.5.1 through 6.5.10 and 7.0.1 through 7.0.16 allows DoS/ReDos via email. Parsing the content of emails where HTML code is copied from Microsoft Word could lead to high CPU usage and block the parsing process.

  • 7.5 High severity

    xhtml2pdf: Inefficient Regular Expression Complexity

    CVE-2024-25885Xhtml2pdf

    An issue in the getcolor function in utils.py of xhtml2pdf v0.2.13 allows attackers to cause a Regular expression Denial of Service (ReDOS) via supplying a crafted string.