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

    GitLab: Inefficient Regular Expression Complexity

    CVE-2024-8124GitLabEPSS 40.2%

    An issue was discovered in GitLab CE/EE affecting all versions starting from 16.4 prior to 17.1.7, starting from 17.2 prior to 17.2.5, starting from 17.3 prior to 17.3.2 which could cause Denial of Service via sending a specific POST request.

  • 7.5 High severity

    path-to-regexp: Inefficient Regular Expression Complexity

    CVE-2024-45296Pillarjs

    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. Because JavaScript is single threaded and regex matching runs on the main thread, p

  • 7.5 High severity

    CPython: Inefficient Regular Expression Complexity

    CVE-2024-6232Python Software FoundationEPSS 2.2%

    There is a MEDIUM severity vulnerability affecting CPython. Regular expressions that allowed excessive backtracking during tarfile.TarFile header parsing are vulnerable to ReDoS via specifically-crafted tar archives.

  • 7.5 High severity

    CPython: Inefficient Regular Expression Complexity

    CVE-2024-7592Python Software FoundationEPSS 2.3%

    There is a LOW severity vulnerability affecting CPython, specifically the 'http.cookies' standard library module. When parsing cookies that contained backslashes for quoted characters in the cookie value, the parser would use an algorithm with quadratic comple

  • 7.5 High severity

    GitLab: Inefficient Regular Expression Complexity

    CVE-2024-2800GitLab

    ReDoS flaw in RefMatcher when matching branch names using wildcards in GitLab EE/CE affecting all versions from 11.3 prior to 17.0.6, 17.1 prior to 17.1.4, and 17.2 prior to 17.2.2 allows denial of service via Regex backtracking.

  • 7.5 High severity

    node-tf2-item-format: Executable Regular Expression Error

    CVE-2024-41655Danocmx

    TF2 Item Format helps users format TF2 items to the community standards. Versions of `tf2-item-format` since at least `4.2.6` and prior to `5.9.14` are vulnerable to a Regular Expression Denial of Service (ReDoS) attack when parsing crafted user input. This vu

  • 7.5 High severity

    kjd/idna: Inefficient Regular Expression Complexity

    CVE-2024-3651KjdEPSS 1.39%

    A vulnerability was identified in the kjd/idna library, specifically within the `idna.encode()` function, affecting version 3.6. The issue arises from the function's handling of crafted input strings, which can lead to quadratic complexity and consequently, a

  • 7.5 High severity

    async: Inefficient Regular Expression Complexity

    CVE-2024-39249Async Project

    Async <= 2.6.4 and <= 3.2.5 are vulnerable to ReDoS (Regular Expression Denial of Service) while parsing function in autoinject function. NOTE: this is disputed by the supplier because there is no realistic threat model: regular expressions are not used with u

  • 7.5 High severity

    gaizhenbiao/chuanhuchatgpt: Inefficient Regular Expression Complexity

    CVE-2024-6038GaiZhenbiao

    A Regular Expression Denial of Service (ReDoS) vulnerability exists in the latest version of gaizhenbiao/chuanhuchatgpt. The vulnerability is located in the filter_history function within the utils.py module. This function takes a user-provided keyword and att

  • 7.5 High severity

    kubeflow/kubeflow: Inefficient Regular Expression Complexity

    CVE-2024-5552Kubeflow

    kubeflow/kubeflow is vulnerable to a Regular Expression Denial of Service (ReDoS) attack due to inefficient regular expression complexity in its email validation mechanism. An attacker can remotely exploit this vulnerability without authentication by providing

  • 7.5 High severity

    lunary-ai/lunary: Inefficient Regular Expression Complexity

    CVE-2024-4148Lunary-ai

    A Regular Expression Denial of Service (ReDoS) vulnerability exists in the lunary-ai/lunary application, version 1.2.10. An attacker can exploit this vulnerability by maliciously manipulating regular expressions, which can significantly impact the response tim

  • 7.5 High severity

    M-Files Server: Inefficient Regular Expression Complexity

    CVE-2024-4056M-Files

    Denial of service condition in M-Files Server in versions before 24.4.13592.4 and after 23.11 (excluding 24.2 LTS) allows unauthenticated user to consume computing resources.

  • 7.5 High severity

    GitLab: Inefficient Regular Expression Complexity

    CVE-2024-2829GitLabEPSS 26%

    An issue has been discovered in GitLab CE/EE affecting all versions starting from 12.5 before 16.9.6, all versions starting from 16.10 before 16.10.4, all versions starting from 16.11 before 16.11.1. A crafted wildcard filter in FileFinder may lead to a denial

  • 7.5 High severity

    django-wiki: Inefficient Regular Expression Complexity

    CVE-2024-28865Django-wiki

    django-wiki is a wiki system for Django. Installations of django-wiki prior to version 0.10.1 are vulnerable to maliciously crafted article content that can cause severe use of server CPU through a regular expression loop. Version 0.10.1 fixes this issue. As a

  • 7.5 High severity

    rack: Inefficient Regular Expression Complexity

    CVE-2024-26146RackEPSS 2%

    Rack is a modular Ruby web server interface. Carefully crafted headers can cause header parsing in Rack to take longer than expected resulting in a possible denial of service issue. Accept and Forwarded headers are impacted. Ruby 3.2 has mitigations for this p

  • 7.5 High severity

    rack: Inefficient Regular Expression Complexity

    CVE-2024-25126RackEPSS 35.4%

    Rack is a modular Ruby web server interface. Carefully crafted content type headers can cause Rack’s media type parser to take much longer than expected, leading to a possible denial of service vulnerability (ReDos 2nd degree polynomial). This vulnerability is

  • 7.5 High severity

    rails: Inefficient Regular Expression Complexity

    CVE-2024-26142RailsEPSS 1.5%

    Rails is a web-application framework. Starting in version 7.1.0, there is a possible ReDoS vulnerability in the Accept header parsing routines of Action Dispatch. This vulnerability is patched in 7.1.3.1. Ruby 3.2 has mitigations for this problem, so Rails app

  • 7.5 High severity

    angular: Inefficient Regular Expression Complexity

    CVE-2024-21490AngularEPSS 1.89%

    This affects versions of the package angular from 1.3.0; versions of the package angularjs from 1.3.0. A regular expression used to split the value of the ng-srcset directive is vulnerable to super-linear runtime due to backtracking. With large carefully-craft

  • 7.5 High severity

    python-multipart: Inefficient Regular Expression Complexity

    CVE-2024-24762KludexEPSS 1.52%

    `python-multipart` is a streaming multipart parser for Python. When using form data, `python-multipart` uses a Regular Expression to parse the HTTP `Content-Type` header, including options. An attacker could send a custom-made `Content-Type` option that is ver

  • 9.1 Critical severity

    Thor: Inefficient Regular Expression Complexity

    CVE-2023-29487Heimdalsecurity

    An issue was discovered in Heimdal Thor agent versions 3.4.2 and before on Windows and 2.6.9 and before on macOS, allows attackers to cause a denial of service (DoS) via the Threat To Process Correlation threat prevention module. NOTE: Heimdal asserts this is

  • 9.8 Critical severity

    thor: Inefficient Regular Expression Complexity

    CVE-2023-29486HeimdalsecurityEPSS 1.03%

    An issue was discovered in Heimdal Thor agent versions 3.4.2 and before 3.7.0 on Windows, allows attackers to bypass USB access restrictions, execute arbitrary code, and obtain sensitive information via Next-Gen Antivirus component. NOTE: Heimdal argues that t

  • 7.5 High severity

    sentry-javascript: Inefficient Regular Expression Complexity

    CVE-2023-50249Getsentry

    Sentry-Javascript is official Sentry SDKs for JavaScript. A ReDoS (Regular expression Denial of Service) vulnerability has been identified in Sentry's Astro SDK 7.78.0-7.86.0. Under certain conditions, this vulnerability allows an attacker to cause excessive c

  • 7.5 High severity

    Not a product: Inefficient Regular Expression Complexity

    CVE-2023-48631AdobeEPSS 1.11%

    @adobe/css-tools versions 4.3.1 and earlier are affected by an Improper Input Validation vulnerability that could result in a denial of service while attempting to parse CSS.

  • 7.5 High severity

    TorBot: Inefficient Regular Expression Complexity

    CVE-2023-45813DedSecInside

    Torbot is an open source tor network intelligence tool. In affected versions the `torbot.modules.validators.validate_link function` uses the python-validators URL validation regex. This particular regular expression has an exponential complexity which allows a

  • 7.5 High severity

    get-func-name: Uncontrolled Resource Consumption

    CVE-2023-43646ChaijsEPSS 1.38%

    get-func-name is a module to retrieve a function's name securely and consistently both in NodeJS and the browser. Versions prior to 2.0.1 are subject to a regular expression denial of service (redos) vulnerability which may lead to a denial of service when par

  • 7.5 High severity

    Mathjax: Inefficient Regular Expression Complexity

    CVE-2023-39663Mathjax

    Mathjax up to v2.7.9 was discovered to contain two Regular expression Denial of Service (ReDoS) vulnerabilities in MathJax.js via the components pattern and markdownPattern. NOTE: the vendor disputes this because the regular expressions are not applied to user

  • 7.5 High severity

    Mailform Pro CGI: Inefficient Regular Expression Complexity

    CVE-2023-40599SYNCK GRAPHICA

    Regular expression Denial-of-Service (ReDoS) exists in multiple add-ons for Mailform Pro CGI 4.3.1.3 and earlier, which allows a remote unauthenticated attacker to cause a denial-of-service condition. Affected add-ons are as follows: call/call.js, prefcodeadv/

  • 7.5 High severity

    GitLab: Inefficient Regular Expression Complexity

    CVE-2023-3994GitLab

    An issue has been discovered in GitLab CE/EE affecting all versions starting from 9.3 before 16.0.8, all versions starting from 16.1 before 16.1.3, all versions starting from 16.2 before 16.2.2. A Regular Expression Denial of Service was possible via sending c

  • 7.5 High severity

    GitLab: Inefficient Regular Expression Complexity

    CVE-2023-3364GitLabEPSS 44.5%

    An issue has been discovered in GitLab CE/EE affecting all versions starting from 8.14 before 16.0.8, all versions starting from 16.1 before 16.1.3, all versions starting from 16.2 before 16.2.2. A Regular Expression Denial of Service was possible via sending

  • 7.5 High severity

    GitLab: Inefficient Regular Expression Complexity

    CVE-2023-0632GitLab

    An issue has been discovered in GitLab affecting all versions starting from 15.2 before 16.0.8, all versions starting from 16.1 before 16.1.3, all versions starting from 16.2 before 16.2.2. A Regular Expression Denial of Service was possible by using crafted p

  • 7.5 High severity

    GitLab: Inefficient Regular Expression Complexity

    CVE-2023-3424GitLab

    An issue has been discovered in GitLab CE/EE affecting all versions starting from 10.3 before 15.11.10, all versions starting from 16.0 before 16.0.6, all versions starting from 16.1 before 16.1.1. A Regular Expression Denial of Service was possible via sendin

  • 7.5 High severity

    debian_linux: Inefficient Regular Expression Complexity

    CVE-2023-36053DebianEPSS 2.98%

    In Django 3.2 before 3.2.20, 4 before 4.1.10, and 4.2 before 4.2.3, EmailValidator and URLValidator are subject to a potential ReDoS (regular expression denial of service) attack via a very large number of domain name labels of emails and URLs.

  • 7.5 High severity

    word-wrap: Inefficient Regular Expression Complexity

    CVE-2023-26115Word-wrapEPSS 1.71%

    All versions of the package word-wrap are vulnerable to Regular Expression Denial of Service (ReDoS) due to the usage of an insecure regular expression within the result variable.

  • 7.5 High severity

    Urlnorm: Inefficient Regular Expression Complexity

    CVE-2023-33289Urlnorm ProjectEPSS 1.2%

    The urlnorm crate through 0.1.4 for Rust allows Regular Expression Denial of Service (ReDos) via a crafted URL to lib.rs. NOTE: the Supplier disputes this, taking the position that "Slow printing of URLs is not a CVE."

  • 7.5 High severity

    semver: Inefficient Regular Expression Complexity

    CVE-2022-25883SemverEPSS 2.76%

    Versions of the package semver before 7.5.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.

  • 7.5 High severity

    Git-url-parse: Inefficient Regular Expression Complexity

    CVE-2023-33290Git-url-parse Project

    The git-url-parse crate through 0.4.4 for Rust allows Regular Expression Denial of Service (ReDos) via a crafted URL to normalize_url in lib.rs, a similar issue to CVE-2023-32758 (Python).

  • 7.5 High severity

    GitLab: Inefficient Regular Expression Complexity

    CVE-2023-2199GitLabEPSS 1.32%

    An issue has been discovered in GitLab CE/EE affecting all versions starting from 12.0 before 15.10.8, all versions starting from 15.11 before 15.11.7, all versions starting from 16.0 before 16.0.2. A Regular Expression Denial of Service was possible via sendi

  • 7.5 High severity

    GitLab: Inefficient Regular Expression Complexity

    CVE-2023-2198GitLabEPSS 1.32%

    An issue has been discovered in GitLab CE/EE affecting all versions starting from 8.7 before 15.10.8, all versions starting from 15.11 before 15.11.7, all versions starting from 16.0 before 16.0.2. A Regular Expression Denial of Service was possible via sendin

  • 7.5 High severity

    fast-xml-parser: Inefficient Regular Expression Complexity

    CVE-2023-34104NaturalIntelligenceEPSS 1.13%

    fast-xml-parser is an open source, pure javascript xml parser. fast-xml-parser allows special characters in entity names, which are not escaped or sanitized. Since the entity name is used for creating a regex for searching and replacing entities in the XML bod

  • 7.5 High severity

    Redcloth: Inefficient Regular Expression Complexity

    CVE-2023-31606PromptworksEPSS 1.51%

    A Regular Expression Denial of Service (ReDoS) issue was discovered in the sanitize_html function of redcloth gem v4.0.0. This vulnerability allows attackers to cause a Denial of Service (DoS) via supplying a crafted payload.