CVE-2020-28493: Regular Expression Denial of Service (ReDoS)
A flaw was found in python-jinja2. The ReDOS vulnerability of the regex is mainly due to the sub-pattern [a-zA-Z0-9.-]+.[a-zA-Z0-9.-]+. This issue can be mitigated by Markdown to format user content instead of the urlize filter, or by implementing request timeouts and limiting process memory.
Other sources
Regular Expression Denial of Service (ReDoS)
— Microsoft
This affects the package jinja2 from 0.0.0 and before 2.11.3. The ReDoS vulnerability is mainly due to the punctuationre regex operator and its use of multiple wildcards. The last wildcard is the most exploitable as it searches for trailing punctuation. This issue can be mitigated by Markdown to format user content instead of the urlize filter, or by implementing request timeouts and limiting process memory.
— Ubuntu
This affects the package jinja2 from 0.0.0 and before 2.11.3. The ReDOS vulnerability of the regex is mainly due to the sub-pattern [a-zA-Z0-9.-]+.[a-zA-Z0-9.-]+ This issue can be mitigated by Markdown to format user content instead of the urlize filter, or by implementing request timeouts and limiting process memory.
— GitHub
Affected Software
Remediation
Information
Patch Available
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2020-28493?
CVE-2020-28493 is a vulnerability in the Python Jinja2 package that allows for ReDoS attacks due to the use of multiple wildcards in the regex operator.
What is the severity of CVE-2020-28493?
CVE-2020-28493 has a severity rating of high with a score of 7.
How does CVE-2020-28493 affect the python-jinja2 package?
CVE-2020-28493 affects the python-jinja2 package versions 0.0.0 to 2.11.3.
What is the risk of CVE-2020-28493?
CVE-2020-28493 poses a risk of denial of service attacks through ReDoS vulnerabilities.
How can I mitigate CVE-2020-28493?
You can mitigate CVE-2020-28493 by updating the python-jinja2 package to version 2.11.3 or higher.