Skip to content
OpenAdvisories

Weakness (CWE)

CWE-1333: Inefficient Regular Expression Complexity

Base Draft

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

How to prevent it (4 mitigations)
  1. Architecture and Design

    Use regular expressions that do not support backtracking, e.g. by removing nested quantifiers.

  2. 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.

  3. Implementation

    Do not use regular expressions with untrusted input. If regular expressions must be used, avoid using backtracking in the expression.

  4. Implementation

    Limit the length of the input that the regular expression will process.

Source: MITRE CWE-1333

591 results · Feed

  • Medium 6.5

    Denial of Service in python-ldap

    python-ldap before 3.4.0 is vulnerable to a denial of service when ldap.schema is used for untrusted schema definitions, because of a regular expression denial of service (ReDoS) flaw in the LDAP schema parser. By sending crafted regex input, a remote authent…

  • High 7.5

    Regular expression denial of service in Delight Nashorn Sandbox

    An issue was discovered in Delight Nashorn Sandbox 0.2.0. There is an ReDoS vulnerability that can be exploited to launching a denial of service (DoS) attack.

  • Medium 5.9

    Exponential ReDoS in devcert

    An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the devcert npm package, when an attacker is able to supply arbitrary input to the certificateFor method

  • Medium 5.9

    Exponential ReDoS in markdown-link-extractor

    An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the markdown-link-extractor npm package, when an attacker is able to supply arbitrary input to the module's exported function

  • Medium 5.9

    Exponential ReDoS in semver-regex

    An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the semver-regex npm package, when an attacker is able to supply arbitrary input to the test() method

  • Medium 5.9

    Exponential ReDoS in jquery-validation

    An exponential ReDoS (Regular Expression Denial of Service) can be triggered in the jquery-validation npm package, when an attacker is able to supply arbitrary input to the url2 method

  • Medium 5.5

    Missing fix for CVE-2022-30126 in 1.28.2

    We failed to apply the fix for CVE-2022-30126 to the 1.x branch in the 1.28.2 release. In Apache Tika, a regular expression in the StandardsText class, used by the StandardsExtractingContentHandler could lead to a denial of service caused by backtracking on a…

  • Medium 5.3

    Regular Expression Denial of Service (ReDoS)

    All versions of package url-regex are vulnerable to Regular Expression Denial of Service (ReDoS) which can cause the CPU usage to crash.

  • High 7.5

    Apache ShenYu (incubating) Regular expression denial of service

    In Apache ShenYui, ShenYu-Bootstrap, RegexPredicateJudge.java uses Pattern.matches(conditionData.getParamValue(), realData) to make judgments, where both parameters are controllable by the user. This can cause an attacker pass in malicious regular expressions…

  • Medium 5.5

    Apache Tika Regular Expression Denial of Service in Standards Extractor

    In Apache Tika, a regular expression in our StandardsText class, used by the StandardsExtractingContentHandler could lead to a denial of service caused by backtracking on a specially crafted file. This only affects users who are running the StandardsExtractin…

  • High 7.4

    ReDoS vulnerability in header parsing in hawk

    Hawk is an HTTP authentication scheme providing mechanisms for making authenticated HTTP requests with partial cryptographic verification of the request and response, covering the HTTP method, request URI, host, and optionally the request payload. Hawk used a…

  • Medium 5.3

    Regular Expression Denial of Service (ReDoS)

    The package angular after 1.7.0 are vulnerable to Regular Expression Denial of Service (ReDoS) by providing a custom locale rule that makes it possible to assign the parameter in posPre: ' '.repeat() of NUMBER_FORMATS.PATTERNS[1].posPre with a very high value…

  • High 7.5

    Inefficient Regular Expression Complexity in Nokogiri

    Nokogiri is an open source XML and HTML library for Ruby. Nokogiri `< v1.13.4` contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to detect encoding in HTML documents. Users are advised to upgrade to Nokog…

  • High 7.5

    Apache DolphinScheduler user registration is vulnerable to ReDoS attacks

    Apache DolphinScheduler user registration is vulnerable to Regular express Denial of Service (ReDoS) attacks, Apache DolphinScheduler users should upgrade to version 2.0.5 or higher.

  • High 7.5
    CVE-2022-24713 Public exploit EPSS 14%

    Regular expression denial of service in Rust's regex crate

    regex is an implementation of regular expressions for the Rust language. The regex crate features built-in mitigations to prevent denial of service attacks caused by untrusted regexes, or untrusted input matched by trusted regexes. Those (tunable) mitigations…

  • High 7.5

    Exponential catastrophic backtracking (ReDoS) in marked

    Marked is a markdown parser and compiler. Prior to version 4.0.10, the regular expression `inline.reflinkSearch` may cause catastrophic backtracking against some strings and lead to a denial of service (DoS). Anyone who runs untrusted markdown through a vulne…

  • High 7.5

    Cubic catastrophic backtracking (ReDoS) in marked

    Marked is a markdown parser and compiler. Prior to version 4.0.10, the regular expression `block.def` may cause catastrophic backtracking against some strings and lead to a regular expression denial of service (ReDoS). Anyone who runs untrusted markdown throu…

  • Medium 5.3

    Uncontrolled Resource Consumption in markdown-it

    markdown-it is a Markdown parser. Prior to version 1.3.2, special patterns with length greater than 50 thousand characterss could slow down the parser significantly. Users should upgrade to version 12.3.2 to receive a patch. There are no known workarounds asi…

  • High 7.5

    Inefficient Regular Expression Complexity in nltk/nltk

    nltk is vulnerable to Inefficient Regular Expression Complexity

  • High 7.5

    Regular expression denial of service vulnerability (ReDoS) in date

    Date.parse in the date gem through 3.2.0 for Ruby allows ReDoS (regular expression Denial of Service) via a long string. The fixed versions are 3.2.1, 3.1.2, 3.0.2, and 2.0.1.

  • Medium 5.3

    Insufficient patch for Regular Expression Denial of Service (ReDoS) to jsx-slack v4.5.1

    jsx-slack is a package for building JSON objects for Slack block kit surfaces from JSX. The maintainers found the patch for CVE-2021-43838 in jsx-slack v4.5.1 is insufficient tfor protection from a Regular Expression Denial of Service (ReDoS) attack. If an at…

  • Medium 5.3

    Regular Expression Denial of Service (ReDoS) in jsx-slack

    jsx-slack is a library for building JSON objects for Slack Block Kit surfaces from JSX. In versions prior to 4.5.1 users are vulnerable to a regular expression denial-of-service (ReDoS) attack. If attacker can put a lot of JSX elements into `<blockquote>` tag…

  • High 7.5

    ReDos vulnerability on guest checkout email validation

    Solidus is a free, open-source ecommerce platform built on Rails. Versions of Solidus prior to 3.1.4, 3.0.4, and 2.11.13 have a denial of service vulnerability that could be exploited during a guest checkout. The regular expression used to validate a guest or…

  • Medium 5.3

    Inefficient Regular Expression Complexity in Validator.js

    ### Impact Versions of `validator` prior to 13.7.0 are affected by an inefficient Regular Expression complexity when using the `rtrim` and `trim` sanitizers. ### Patches The problem has been patched in validator 13.7.0

  • Medium 5.3

    Inefficient Regular Expression Complexity in validatorjs/validator.js

    validator.js is vulnerable to Inefficient Regular Expression Complexity

  • Medium 4.3

    Regular expression denial-of-service in Zulip

    Zulip is an open source team chat server. In affected versions Zulip allows organization administrators on a server to configure "linkifiers" that automatically create links from messages that users send, detected via arbitrary regular expressions. Malicious …

  • High 7.5

    Regular Expression Denial of Service (ReDoS)

    The package handsontable before 10.0.0; the package handsontable from 0 and before 10.0.0 are vulnerable to Regular Expression Denial of Service (ReDoS) in Handsontable.helper.isNumeric function.

  • High 7.5

    Inefficient Regular Expression Complexity in nltk/nltk

    nltk is vulnerable to Inefficient Regular Expression Complexity

  • Medium 5.3

    Inefficient Regular Expression Complexity in josdejong/jsoneditor

    jsoneditor is vulnerable to Inefficient Regular Expression Complexity

  • Medium 5.3

    Inefficient Regular Expression Complexity in pksunkara/inflect

    inflect is vulnerable to Inefficient Regular Expression Complexity

  • Medium —

    Regular Expression Denial of Service in millisecond

    Versions of `millisecond` prior to 0.1.2 are affected by a regular expression denial of service vulnerability when extremely long version strings are parsed. ## Proof of concept ``` var ms = require('millisecond'); var genstr = function (len, chr) { var resul…

  • High 7.5

    Regular Expression Denial of Service in Leo Editor

    Leo Editor v6.2.1 was discovered to contain a regular expression denial of service (ReDoS) vulnerability in the component plugins/importers/dart.py.

  • High 7.5

    Regular Expression Denial of Service in flask-restx

    Flask-RESTX (pypi package flask-restx) is a community driven fork of Flask-RESTPlus. Flask-RESTX before version 0.5.1 is vulnerable to ReDoS (Regular Expression Denial of Service) in email_regex. This is fixed in version 0.5.1.

  • High 7.5

    Inefficient Regular Expression Complexity in cdr/code-server

    code-server is vulnerable to Inefficient Regular Expression Complexity

  • High 7.5

    Inefficient Regular Expression Complexity in nervjs/taro

    taro is vulnerable to Inefficient Regular Expression Complexity

  • High 7.5

    Inefficient Regular Expression Complexity in chalk/ansi-regex

    ansi-regex is vulnerable to Inefficient Regular Expression Complexity

  • High 7.5

    Inefficient Regular Expression Complexity in fb55/nth-check

    nth-check is vulnerable to Inefficient Regular Expression Complexity

  • High 7.5

    Inefficient Regular Expression Complexity in sindresorhus/semver-regex

    semver-regex is vulnerable to Inefficient Regular Expression Complexity

  • High 7.5

    Inefficient Regular Expression Complexity in prismjs/prism

    prism is vulnerable to Inefficient Regular Expression Complexity

  • High 7.5

    Inefficient Regular Expression Complexity in vuelidate/vuelidate

    vuelidate is vulnerable to Inefficient Regular Expression Complexity