cve.bz

CVE-2020-28493 Uncontrolled Resource Consumption

5.3 mediumExploit referenceEPSS 3.6%Fix available

Medium (5.3). EPSS 3.6% estimated probability of exploitation activity in the next 30 days. Fixed in jinja2 2.11.3.

On this page
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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
3.6% (unchanged from 3.6% a week ago; 3.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 90th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-28493 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-28493?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-28493?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-28493 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
palletsprojects:jinjabefore 2.11.3
fedoraproject:fedora33

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-g3rq-g295-4j3mPyPIjinja2<2.11.32.11.3
PYSEC-2021-66PyPIjinja2<2.11.32.11.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14jinja22.11.3-1DEBIAN-CVE-2020-28493
Ubuntu20.04:LTSjinja22.10.1-2ubuntu0.2UBUNTU-CVE-2020-28493 USN-6599-1
Ubuntu22.04:LTSjinja23.0.3-1ubuntu0.1USN-6599-1
UbuntuPro:14.04:LTSjinja22.7.2-2ubuntu0.1~esm2UBUNTU-CVE-2020-28493 USN-6599-1
UbuntuPro:16.04:LTSjinja22.8-1ubuntu0.1+esm1UBUNTU-CVE-2020-28493 USN-5701-1 USN-6599-1
UbuntuPro:18.04:LTSjinja22.10-1ubuntu0.18.04.1+esm1UBUNTU-CVE-2020-28493 USN-6599-1
Red Hatenterprise_linux:8::appstreamCython, python2-Cython, Cython-debugsource and 1 more0:0.28.1-7.module+el8.1.0+3111+de3f2d8eRHSA-2021:4151
Red Hatenterprise_linux:8::appstreamCython, python38-Cython, Cython-debugsource and 1 more0:0.29.14-4.module+el8.4.0+8888+89bc7e79RHSA-2021:4162
Red Hatenterprise_linux:8::appstreamPyYAML, python2-pyyaml, PyYAML-debugsource and 1 more0:3.12-16.module+el8.1.0+3111+de3f2d8eRHSA-2021:4151
Red Hatenterprise_linux:8::appstreamPyYAML, python38-pyyaml, PyYAML-debugsource and 1 more0:5.4.1-1.module+el8.5.0+10721+14d8e0d5RHSA-2021:4162
Red Hatenterprise_linux:8::appstreambabel, python2-babel0:2.5.1-10.module+el8.5.0+11014+88fc0d0bRHSA-2021:4151
Red Hatenterprise_linux:8::appstreambabel, python38-babel0:2.7.0-11.module+el8.5.0+11015+9c1c7c42RHSA-2021:4162
Red Hatenterprise_linux:8::appstreammod_wsgi, python38-mod_wsgi0:4.6.8-3.module+el8.4.0+8888+89bc7e79RHSA-2021:4162
Red Hatenterprise_linux:8::appstreamnumpy, python2-numpy, numpy-debugsource and 3 more1:1.14.2-16.module+el8.4.0+9406+221a4565RHSA-2021:4151
Red Hatenterprise_linux:8::appstreamnumpy, python38-numpy, numpy-debugsource and 3 more0:1.17.3-6.module+el8.5.0+12205+a865257aRHSA-2021:4162
Red Hatenterprise_linux:8::appstreampytest, python2-pytest0:3.4.2-13.module+el8.1.0+3111+de3f2d8eRHSA-2021:4151
Red Hatenterprise_linux:8::appstreampython-PyMySQL, python2-PyMySQL0:0.8.0-10.module+el8.1.0+3111+de3f2d8eRHSA-2021:4151
Red Hatenterprise_linux:8::appstreampython-PyMySQL, python38-PyMySQL0:0.10.1-1.module+el8.4.0+9692+8e86ab84RHSA-2021:4162
79 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 12 morepython-Jinja22.10.1-3.10.2SUSE-SU-2021:0654-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8python-Jinja22.9.6-3.6.1SUSE-SU-2021:0603-1
SUSELinux Enterprise Module for Advanced Systems Management 12, Linux Enterprise Module for Public Cloud 12, Manager Client Tools 12python-Jinja22.8-19.23.1SUSE-SU-2021:0607-1
SUSELinux Enterprise Point of Sale 12 SP2, OpenStack Cloud 7python-Jinja22.8-22.11.1SUSE-SU-2021:0601-1
SUSELinux Enterprise Server 11 SP3-CLIENT-TOOLS, Linux Enterprise Server 11 SP4-CLIENT-TOOLS, Linux Enterprise Server 11-PUBCLOUDpython-Jinja22.6-2.19.5.1SUSE-SU-2021:14644-1
SUSEOpenStack Cloud 9, OpenStack Cloud Crowbar 9python-Jinja22.10.1-3.6.1SUSE-SU-2021:0602-1
openSUSETumbleweedpython-Jinja23.0.1-3.2openSUSE-SU-2024:11208-1
openSUSETumbleweedpython-Jinja23.1.4-1.1openSUSE-SU-2024:13930-1
openSUSETumbleweedpython-Jinja23.1.6-2.4openSUSE-SU-2026:11992-1
AlmaLinux8babel, python2-babel2.5.1-10.module_el8.6.0+2781+fed64c13ALSA-2021:4151
AlmaLinux8python-nose-docs1.3.7-31.module_el8.5.0+2569+5c5719bcALSA-2021:4151
AlmaLinux8python-sqlalchemy-doc1.3.2-2.module_el8.5.0+2569+5c5719bcALSA-2021:4151
AlmaLinux8python2-Cython0.28.1-7.module_el8.6.0+2781+fed64c13ALSA-2021:4151
AlmaLinux8python2-PyMySQL0.8.0-10.module_el8.6.0+2781+fed64c13ALSA-2021:4151
AlmaLinux8python2-attrs17.4.0-10.module_el8.6.0+2781+fed64c13ALSA-2021:4151
AlmaLinux8python2-backports1.0-16.module_el8.6.0+2781+fed64c13ALSA-2021:4151
AlmaLinux8python2-backports-ssl_match_hostname3.5.0.1-12.module_el8.6.0+2781+fed64c13ALSA-2021:4151
AlmaLinux8python2-bson, python2-pymongo, python2-pymongo-gridfs3.7.0-1.module_el8.6.0+2781+fed64c13ALSA-2021:4151
AlmaLinux8python2-chardet3.0.4-10.module_el8.6.0+2781+fed64c13ALSA-2021:4151
AlmaLinux8python2-coverage4.5.1-4.module_el8.6.0+2781+fed64c13ALSA-2021:4151
AlmaLinux8python2-dns1.15.0-10.module_el8.6.0+2781+fed64c13ALSA-2021:4151
64 more for AlmaLinux in the JSON.
Rocky Linux8Cython0:0.28.1-7.module+el8.4.0+403+9ae17a31RLSA-2021:4151
Rocky Linux8Cython0:0.28.1-7.module+el8.5.0+706+735ec4b3RLSA-2021:4151
Rocky Linux8Cython0:0.29.14-4.module+el8.4.0+570+c2eaf144RLSA-2021:4162
Rocky Linux8PyYAML0:3.12-16.module+el8.4.0+403+9ae17a31RLSA-2021:4151
Rocky Linux8PyYAML0:3.12-16.module+el8.5.0+706+735ec4b3RLSA-2021:4151
Rocky Linux8PyYAML0:5.4.1-1.module+el8.4.0+574+843c4898RLSA-2021:4162
Rocky Linux8PyYAML0:5.4.1-1.module+el8.5.0+672+ab6eb015RLSA-2021:4162
Rocky Linux8babel0:2.5.1-10.module+el8.5.0+706+735ec4b3RLSA-2021:4151
Rocky Linux8babel0:2.7.0-11.module+el8.5.0+672+ab6eb015RLSA-2021:4162
Rocky Linux8mod_wsgi0:4.6.8-3.module+el8.4.0+570+c2eaf144RLSA-2021:4162
Rocky Linux8numpy0:1.17.3-6.module+el8.5.0+672+ab6eb015RLSA-2021:4162
Rocky Linux8numpy1:1.14.2-16.module+el8.4.0+403+9ae17a31RLSA-2021:4151
96 more for Rocky Linux in the JSON.
Alpinev3.14, v3.15, v3.16 and 8 morepy3-jinja21.11.3-r0ALPINE-CVE-2020-28493
Azure Linux3nodejs20.14.0-1AZL-40857
Azure Linux3nodejs2424.13.0-1AZL-75813

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw is out of support scope for the following products:

* Red Hat Enterprise Linux 6

* Red Hat Enterprise Linux 7

* Red Hat Ceph Storage 2

To learn more about Red Hat Enterprise Linux support scopes, please see https://access.redhat.com/support/policy/updates/errata/

In Red Hat OpenStack Platform, because python-jinja2 is not directly customer exposed, the Impact has been moved to Low and no updated will be provided at this time for the RHOSP python-jinja2 package.

Red Hat Quay does not make use of the vulnerable function, so the impact is Low.

Red Hat's mitigation

If using the jinja2 library as a developer, this flaw can be mitigated by not using the vulnerable urlize() filter, and instead, using Markdown to format user content.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8python27:2.7-8050020210811095446.3e7ace8bFixed 2021-11-09RHSA-2021:4151
Red Hat Enterprise Linux 8python-jinja2-0:2.10.1-3.el8Fixed 2021-11-09RHSA-2021:4161
Red Hat Enterprise Linux 8python38:3.8-8050020210811101222.e3d35ccaFixed 2021-11-09RHSA-2021:4162
Red Hat Enterprise Linux 8python38-devel:3.8-8050020210811101222.e3d35ccaFixed 2021-11-09RHSA-2021:4162
Red Hat Software Collections for Red Hat Enterprise Linux 7python27-babel-0:0.9.6-10.el7Fixed 2021-08-24RHSA-2021:3252
Red Hat Software Collections for Red Hat Enterprise Linux 7python27-python-0:2.7.18-3.el7Fixed 2021-08-24RHSA-2021:3252
Red Hat Software Collections for Red Hat Enterprise Linux 7python27-python-jinja2-0:2.6-16.el7Fixed 2021-08-24RHSA-2021:3252
Red Hat Software Collections for Red Hat Enterprise Linux 7python27-python-pygments-0:1.5-5.el7Fixed 2021-08-24RHSA-2021:3252
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-babel-0:2.7.0-12.el7Fixed 2021-08-24RHSA-2021:3254
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-python-0:3.8.11-2.el7Fixed 2021-08-24RHSA-2021:3254
Red Hat Ansible Automation Platform 1.2jinja2Not affected
Red Hat Ansible Automation Platform 1.2python-jinja2Not affected
Red Hat Ansible Tower 3jinja2Not affected
Red Hat Ceph Storage 2python-jinja2Out of support scope
Red Hat Ceph Storage 3python-jinja2Will not fix
Red Hat Enterprise Linux 6python-jinja2Out of support scope
Red Hat Enterprise Linux 7python-jinja2Out of support scope
Red Hat Enterprise Linux 9python-jinja2Not affected
Red Hat OpenStack Platform 13 (Queens)python-jinja2Will not fix
Red Hat Quay 3quay/quay-rhel8Affected
17 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-28493.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON