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-26affected: 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_5fixed: 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.el7fixed: vendor fix RHSA-2014:0748
-
Red Hat Enterprise Linux 7 python-jinja2not 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
References
-
mandriva.com
/security/advisories?name=MDVSA-2014:096
vendor-advisory, advisory
-
rhn.redhat.com
/errata/RHSA-2014-0747.html
vendor-advisory, web, advisory
-
gentoo.org
/security/en/glsa/glsa-201408-13.xml
vendor-advisory, web
-
rhn.redhat.com
/errata/RHSA-2014-0748.html
vendor-advisory, web, advisory
-
oss.oracle.com
/pipermail/el-errata/2014-June/004192.html
mailing-list, web
-
openwall.com
/lists/oss-security/2014/01/10/3
mailing-list, web
-
secunia.com
/advisories/59017
third-party-advisory, advisory
-
secunia.com
/advisories/56287
third-party-advisory, advisory
-
secunia.com
/advisories/58783
third-party-advisory, advisory
-
secunia.com
/advisories/58918
third-party-advisory, advisory
-
secunia.com
/advisories/60738
third-party-advisory, advisory
-
bugs.debian.org
/cgi-bin/bugreport.cgi?bug=734747
web
-
bugzilla.redhat.com
/show_bug.cgi?id=1051421
web, report
-
secunia.com
/advisories/60770
third-party-advisory, advisory
-
jinja.pocoo.org
/docs/changelog/
web
-
openwall.com
/lists/oss-security/2014/01/10/2
mailing-list, web
-
advisories.mageia.org
/MGASA-2014-0028.html
web, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2014-1402
advisory
-
github.com
/advisories/GHSA-8r7q-cvjq-x353
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2014-8.yaml
web
-
web.archive.org
/web/20150523060528/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2014:096/?name=MDVSA
web
-
jinja.pocoo.org
/docs/changelog
web
Sources
- CVE List CVE-2014-1402
- GitHub Advisory GHSA-8r7q-cvjq-x353
- NVD CVE-2014-1402
- OSV PYSEC-2014-8
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.