Gentoo: GLSA-202107-19: Jinja: Denial of service
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.
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.