REDHAT-BUG-2467298: High severity Mistune Mistune vulnerability
In versions 3.0.0a1 through 3.2.0 of Mistune, there is a ReDoS (Regular Expression Denial of Service) vulnerability in LINKTITLERE that allows an attacker who can supply Markdown for parsing to cause denial of service. The regular expression used for parsing link titles contains overlapping alternatives that can trigger catastrophic backtracking. In both the double-quoted and single-quoted branches, a backslash followed by punctuation can be matched either as an escaped punctuation sequence or as two ordinary characters, creating an ambiguous pattern inside a repeated group. If an attacker supplies Markdown containing repeated ! sequences with no closing quote, the regex engine explores an exponential number of backtracking paths. This is reachable through normal Markdown parsing of inline links and block link reference definitions. A small crafted input can therefore cause significant CPU consumption and make applications using Mistune unresponsive.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Mistuneto a version that resolves this vulnerability.Fixed in 3.0.0a1 through 3.2.0 - Compensating control
Mitigate by preventing untrusted users from supplying Markdown input for Mistune parsing (or strictly isolate/limit where Markdown is processed) to avoid triggering the LINK_TITLE_RE ReDoS via normal inline link and block link reference parsing.
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2467298?
The severity of REDHAT-BUG-2467298 is classified as high, with a severity score of 7.
How do I fix REDHAT-BUG-2467298?
To fix REDHAT-BUG-2467298, you should update Mistune to a version later than 3.2.0.
What kind of vulnerability is REDHAT-BUG-2467298?
REDHAT-BUG-2467298 is a Regular Expression Denial of Service (ReDoS) vulnerability.
What components are affected by REDHAT-BUG-2467298?
The vulnerability affects versions 3.0.0a1 through 3.2.0 of the Mistune software.
What impact does REDHAT-BUG-2467298 have on systems?
REDHAT-BUG-2467298 can lead to denial of service for systems that use Mistune to parse Markdown content.