CVE-2020-28493 Affecting jinja2 package, versions <2.10.1-2ubuntu0.2


Severity

Recommended
low

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.24% (62nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2004-JINJA2-1133119
  • published22 Oct 2022
  • disclosed1 Feb 2021

Introduced: 1 Feb 2021

CVE-2020-28493  (opens in a new tab)

How to fix?

Upgrade Ubuntu:20.04 jinja2 to version 2.10.1-2ubuntu0.2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream jinja2 package and not the jinja2 package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

This affects the package jinja2 from 0.0.0 and before 2.11.3. The ReDoS vulnerability is mainly due to the _punctuation_re 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.

CVSS Scores

version 3.1