GLSA 202107-19: Jinja: Denial of service

Severity:low
Title:Jinja: Denial of service
Date:07/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 Architecture(s)
dev-python/jinja < 2.11.3 >= 2.11.3 All supported architectures

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

Availability

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

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 2010 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.

Thank you!