- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 202107-19
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                           https://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 Severity: Low
    Title: Jinja: Denial of service
     Date: July 08, 2021
     Bugs: #768300
       ID: 202107-19

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
=======
An inefficient regular expression could be exploited to cause a Denial
of Service condition.

Background
=========
Jinja is a template engine written in pure Python.

Affected packages
================
    -------------------------------------------------------------------
     Package              /     Vulnerable     /            Unaffected
    -------------------------------------------------------------------
  1  dev-python/jinja             < 2.11.3                  >= 2.11.3 

Description
==========
The 'urlize' filter in Jinja utilized an inefficient regular expression
that could be exploited to consume excess CPU.

Impact
=====
An attacker could cause a Denial of Service condition via crafted input
to the 'urlize' Jinja filter.

Workaround
=========
There is no known workaround at this time.

Resolution
=========
All Jinja users should upgrade to the latest version:

  # emerge --sync
  # emerge --ask --oneshot --verbose ">=dev-python/jinja-2.11.3"

References
=========
[ 1 ] CVE-2020-28493
      https://nvd.nist.gov/vuln/detail/CVE-2020-28493

Availability
===========
This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

 https://security.gentoo.org/glsa/202107-19

Concerns?
========
Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users' machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
https://bugs.gentoo.org.

License
======
Copyright 2021 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

https://creativecommons.org/licenses/by-sa/2.5/

Gentoo: GLSA-202107-19: Jinja: Denial of service

An inefficient regular expression could be exploited to cause a Denial of Service condition.

Summary

The 'urlize' filter in Jinja utilized an inefficient regular expression that could be exploited to consume excess CPU.

Resolution

All Jinja users should upgrade to the latest version: # emerge --sync # emerge --ask --oneshot --verbose ">=dev-python/jinja-2.11.3"

References


[ 1 ] CVE-2020-28493 https://nvd.nist.gov/vuln/detail/CVE-2020-28493

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website: https://security.gentoo.org/glsa/202107-19

Concerns


Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users' machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org.

Severity
Severity: Low
Title: Jinja: Denial of service
Date: July 08, 2021
Bugs: #768300
ID: 202107-19

Synopsis

An inefficient regular expression could be exploited to cause a Denial of Service condition.

Background

Jinja is a template engine written in pure Python.

Affected Packages

------------------------------------------------------------------- Package / Vulnerable / Unaffected ------------------------------------------------------------------- 1 dev-python/jinja < 2.11.3 >= 2.11.3

Impact

===== An attacker could cause a Denial of Service condition via crafted input to the 'urlize' Jinja filter.

Workaround

There is no known workaround at this time.

Related News