Skip to content
Fencer Intel
high 8.4

CVE-2014-1402 json

Incorrect Privilege Assignment in Jinja2

published 2014-05-19 12 y ago modified 2026-06-17 4 mo ago also GHSA-8r7q-cvjq-x353 , PYSEC-2014-8 , EUVD-2014-0023

cvss
8.4
version 3.1, GitHub
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 31%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi jinja2 2.7.2
  • jinja2 Debian 14, Debian 13, Debian 12 2.7.2-1

debian advisories DEBIAN-CVE-2014-1402

  • python27-python-jinja2 RHEL 1 SOFTWARE_COLLECTIONS 2.6-10.el6
  • python27-python-jinja2 RHEL 1 SOFTWARE_COLLECTIONS 2.6-11.el7
  • python33-python-jinja2 RHEL 1 SOFTWARE_COLLECTIONS 2.6-11.el6
  • python33-python-jinja2 RHEL 1 SOFTWARE_COLLECTIONS 2.6-12.el7
  • python-jinja2 RHEL 6 2.2.1-2.el6_5

red hat advisories RHSA-2014:0748RHSA-2014:0747

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2014-1402 updated cvss 4.4

python-jinja2: FileSystemBytecodeCache insecure cache temporary file use

  • Red Hat OpenStack Platform 4 python-jinja2-26
    affected: no fix available
  • Red Hat Enterprise Linux Desktop Optional (v. 6) python-jinja2 2.2.1-2.el6_5 Red Hat Enterprise Linux HPC Node Optional (v. 6) python-jinja2 2.2.1-2.el6_5 Red Hat Enterprise Linux Server Optional (v. 6) python-jinja2 2.2.1-2.el6_5 Red Hat Enterprise Linux Workstation Optional (v. 6) python-jinja2 2.2.1-2.el6_5
    fixed: vendor fix RHSA-2014:0747
  • Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 6) python27-python-jinja2 2.6-10.el6, python33-python-jinja2 2.6-11.el6 Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 7) python27-python-jinja2 2.6-11.el7, python33-python-jinja2 2.6-12.el7 Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.3) python27-python-jinja2 2.6-10.el6, python33-python-jinja2 2.6-11.el6 Red Hat Software Collections 1 for Red Hat Enterprise Linux Server EUS (v. 6.4) python27-python-jinja2 2.6-10.el6, python33-python-jinja2 2.6-11.el6 Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 6) python27-python-jinja2 2.6-10.el6, python33-python-jinja2 2.6-11.el6 Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 7) python27-python-jinja2 2.6-11.el7, python33-python-jinja2 2.6-12.el7
    fixed: vendor fix RHSA-2014:0748
  • Red Hat Enterprise Linux 7 python-jinja2
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.37% chance of exploitation in the next 30 days, higher than 31% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 2.0 4.4 AV:L/AC:M/Au:N/C:P/I:P/A:P
GitHub 3.1 8.4 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
pypi jinja2
<2.7.2
2.7.2

Classification

Weakness
  • CWE-264 Permissions, Privileges, and Access Controls
  • CWE-266 Incorrect Privilege Assignment

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.