Moderate: python-jinja2 security update
Summary
RLSA-2021:4161: Moderate: python-jinja2 security update. Affects python-jinja2 versions < 0:2.10.1-3.el8. Fixed in 0:2.10.1-3.el8. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The python-jinja2 package contains Jinja2, a template engine written in pure Python. Jinja2 provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment.
Vulnerability Detail
The python-jinja2 package is affected by a Regular Expression Denial of Service (ReDoS) vulnerability, identified as CVE-2020-28493. This vulnerability is caused by a sub-pattern in the code, which can be exploited to cause a denial of service attack. An attacker can send a specially crafted request that triggers excessive backtracking in the regular expression engine, leading to high CPU usage and potential system instability. The impact of this vulnerability is considered moderate with a CVSS score of 7.5.
How To Fix
Minimum fixed version
0:2.10.1-3.el8
This is the first release that contains the fix.
sudo dnf update python-jinja2
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is recommended to apply the security update as soon as possible to mitigate the risk.
Conclusion
The python-jinja2 package is affected by a moderate vulnerability (CVE-2020-28493) that can be exploited to cause a denial of service attack. It is crucial to update the package to the recommended version or later to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for python-jinja2 →
FAQ
Python-jinja2 is a template engine written in pure Python. It provides a non-XML syntax inspired by Django and supports inline expressions and a sandboxed environment.
A Regular Expression Denial of Service (ReDoS) vulnerability occurs when a regular expression pattern can be exploited to cause excessive backtracking, leading to high CPU usage and potential denial of service.
The impact of this vulnerability is considered moderate. An attacker can exploit the vulnerability to cause a denial of service attack, potentially leading to system instability.
To fix this vulnerability, update the python-jinja2 package to version 2.10.1-3.el8 or later. This update includes a patch that addresses the ReDoS vulnerability.
There is no known workaround for this vulnerability. It is recommended to apply the security update to mitigate the risk.
Related vulnerabilities
Recent vulnerabilities recorded for python-jinja2.