Skip to content
OpenAdvisories
High · 8.4 CVE-2014-1402 EUVD-2014-0023GHSA-8r7q-cvjq-x353PYSEC-2014-8

Incorrect Privilege Assignment in Jinja2

Published May 19, 2014 · Updated Aug 6, 2024 · Assigned by mitre

Description

The default configuration for bccache.FileSystemBytecodeCache in Jinja2 before 2.7.2 does not properly create temporary files, which allows local users to gain privileges via a crafted .cache file with a name starting with __jinja2_ in /tmp.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 jinja2 2.7.2-1 —
Debian 13 jinja2 2.7.2-1 —
Debian 12 jinja2 2.7.2-1 —
ReleasePackageFixed inAdvisory
RHEL 6 python-jinja2 2.2.1-2.el6_5 RHSA-2014:0747
RHEL 1 python27-python-jinja2 2.6-10.el6 RHSA-2014:0748
RHEL 1 python33-python-jinja2 2.6-11.el6 RHSA-2014:0748

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI jinja2 < 2.7.2 2.7.2 GHSA-8r7q-cvjq-x353

Advisories 2

References