Overly broad permissions can turn one compromised account into a much larger security problem. Learn how to reduce unnecessary access, review privileges, and apply least privilege across modern Linux systems. Review Linux Privileges×

Alerts This Week
Warning Icon 1 465
Alerts This Week
Warning Icon 1 465

Red Hat: RHSA-2014:0748-01 Moderate: Python Jinja2 Code Execution Risk

red hat
Calendar Grey June 11, 2014
Scroller Redhat
Red Hat unveils a significant security patch for python-jinja2 rectifying possible vulnerabilities that could lead to unauthorized code execution.
Updated python33-python-jinja2 and python27-python-jinja2 packages that fix one security issue are now available for Red Hat Software Collections 1

Solution

Before applying this update, make sure all previously released errata relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to use the Red Hat Network to apply this update are available at https://access.redhat.com/site/articles/11258

Summary

Jinja2 is a template engine written in pure Python. It provides a Django-inspired, non-XML syntax but supports inline expressions and an optional sandboxed environment.
It was discovered that Jinja2 did not properly handle bytecode cache files stored in the system's temporary directory. A local attacker could use this flaw to alter the output of an application using Jinja2 and FileSystemBytecodeCache, and potentially execute arbitrary code with the privileges of that application. (CVE-2014-1402)
All Jinja2 users are advised to upgrade to these updated packages, which contain a backported patch to correct this issue. For the update to take effect, all applications using Jinja2 must be restarted.

References

https://access.redhat.com/security/cve/CVE-2014-1402 https://access.redhat.com/security/updates/classification/#moderate

Package List

Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 6):
Source: python27-python-jinja2-2.6-10.el6.src.rpm python33-python-jinja2-2.6-11.el6.src.rpm
noarch: python27-python-jinja2-2.6-10.el6.noarch.rpm python33-python-jinja2-2.6-11.el6.noarch.rpm
Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.3):
Source: python27-python-jinja2-2.6-10.el6.src.rpm python33-python-jinja2-2.6-11.el6.src.rpm
noarch: python27-python-jinja2-2.6-10.el6.noarch.rpm python33-python-jinja2-2.6-11.el6.noarch.rpm
Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.4):
Source: python27-python-jinja2-2.6-10.el6.src.rpm python33-python-jinja2-2.6-11.el6.src.rpm
noarch: python27-python-jinja2-2.6-10.el6.noarch.rpm python33-python-jinja2-2.6-11.el6.noarch.rpm
Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 6):
Source: python27-python-jinja2-2.6-10.el6.src.rpm python33-python-jinja2-2.6-11.el6.src.rpm
noarch: python27-python-jinja2-2.6-10.el6.noarch.rpm python33-python-jinja2-2.6-11.el6.noarch.rpm
Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 7):
Source: python27-python-jinja2-2.6-11.el7.src.rpm python33-python-jinja2-2.6-12.el7.src.rpm
noarch: python27-python-jinja2-2.6-11.el7.noarch.rpm

Read the Full Advisory


Advisory ID: RHSA-2014:0748-01
Product: Red Hat Software Collections
Issue date: 2014-06-11

Topic

Updated python33-python-jinja2 and python27-python-jinja2 packages that fixone security issue are now available for Red Hat Software Collections 1.The Red Hat Security Response Team has rated this update as having Moderatesecurity impact. A Common Vulnerability Scoring System (CVSS) base score,which gives a detailed severity rating, is available from the CVE link inthe References section.

Relevant Releases Architectures

Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 6) - noarch

Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 7) - noarch

Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.3) - noarch

Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.4) - noarch

Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 6) - noarch

Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 7) - noarch

Bugs Fixed

1051421 - CVE-2014-1402 python-jinja2: FileSystemBytecodeCache insecure cache temporary file use

Get the latest News and Insights

Get the latest Linux and open source security news straight to your inbox.