python-jinja2: FileSystemBytecodeCache insecure cache temporary file use
Published May 19, 2014
8.6
HIGHCVSS 4.0
EPSS 0.38%
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.
Affected products
No data.
- ≤ 2.7.1
- 2.0
- 2.0
- 2.1
- 2.1.1
- 2.2
- 2.2.1
- 2.3
- 2.3.1
- 2.4
- 2.4.1
- 2.5
- 2.5.1
- 2.5.2
- 2.5.3
- 2.5.4
- 2.5.5
- 2.6
- 2.7
No data.
Red Hat Enterprise Linux 6
python-jinja2-0:2.2.1-2.el6_5
Fixed · RHSA-2014:0747
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6
python27-python-jinja2-0:2.6-10.el6
Fixed · RHSA-2014:0748
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6
python33-python-jinja2-0:2.6-11.el6
Fixed · RHSA-2014:0748
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.3 EUS
python27-python-jinja2-0:2.6-10.el6
Fixed · RHSA-2014:0748
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.3 EUS
python33-python-jinja2-0:2.6-11.el6
Fixed · RHSA-2014:0748
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.4 EUS
python27-python-jinja2-0:2.6-10.el6
Fixed · RHSA-2014:0748
Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.4 EUS
python33-python-jinja2-0:2.6-11.el6
Fixed · RHSA-2014:0748
Red Hat Software Collections 1 for Red Hat Enterprise Linux 7
python27-python-jinja2-0:2.6-11.el7
Fixed · RHSA-2014:0748
Red Hat Software Collections 1 for Red Hat Enterprise Linux 7
python33-python-jinja2-0:2.6-12.el7
Fixed · RHSA-2014:0748
Red Hat Enterprise Linux 7
python-jinja2
Not affected
Red Hat OpenStack Platform 4
python-jinja2-26
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | python-jinja2-0:2.2.1-2.el6_5 | Fixed | RHSA-2014:0747 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6 | python27-python-jinja2-0:2.6-10.el6 | Fixed | RHSA-2014:0748 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6 | python33-python-jinja2-0:2.6-11.el6 | Fixed | RHSA-2014:0748 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.3 EUS | python27-python-jinja2-0:2.6-10.el6 | Fixed | RHSA-2014:0748 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.3 EUS | python33-python-jinja2-0:2.6-11.el6 | Fixed | RHSA-2014:0748 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.4 EUS | python27-python-jinja2-0:2.6-10.el6 | Fixed | RHSA-2014:0748 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 6.4 EUS | python33-python-jinja2-0:2.6-11.el6 | Fixed | RHSA-2014:0748 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 7 | python27-python-jinja2-0:2.6-11.el7 | Fixed | RHSA-2014:0748 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux 7 | python33-python-jinja2-0:2.6-12.el7 | Fixed | RHSA-2014:0748 |
| Red Hat Enterprise Linux 7 | python-jinja2 | Not affected | n/a |
| Red Hat OpenStack Platform 4 | python-jinja2-26 | Affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
No CVSS v3.0 score for this CVE.
AV:L/AC:M/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (10 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.38% (0.00376) | 29.13th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.37% (0.00373) | 28.83th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.10% (0.00096) | 24.76th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.04% (0.00044) | 11.89th | v3 (v2023.03.01) |
| Jul 2, 2024 | 0.04% (0.00044) | 10.25th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.04% (0.00044) | 8.24th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.55% (0.01547) | 74.98th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.55% (0.01547) | 74.94th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.55% (0.01547) | 72.92th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.55% (0.01547) | 51.82th | v2 (v2022.01.01) |
References (23)
- http://advisories.mageia.org/MGASA-2014-0028.html x_refsource_CONFIRM
- http://jinja.pocoo.org/docs/changelog x_refsource_CONFIRM
- http://openwall.com/lists/oss-security/2014/01/10/2 mailing-listx_refsource_MLIST
- http://openwall.com/lists/oss-security/2014/01/10/3 mailing-listx_refsource_MLIST
- http://rhn.redhat.com/errata/RHSA-2014-0747.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2014-0748.html vendor-advisoryx_refsource_REDHAT
- http://secunia.com/advisories/56287 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/58783 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/58918 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/59017 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/60738 third-party-advisoryx_refsource_SECUNIA
- http://secunia.com/advisories/60770 third-party-advisoryx_refsource_SECUNIA
- http://www.gentoo.org/security/en/glsa/glsa-201408-13.xml vendor-advisoryx_refsource_GENTOO
- http://www.mandriva.com/security/advisories?name=MDVSA-2014:096 vendor-advisoryx_refsource_MANDRIVA
- https://access.redhat.com/security/cve/CVE-2014-1402 Vendor Advisory
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747 x_refsource_CONFIRM
- https://bugzilla.redhat.com/show_bug.cgi?id=1051421 x_refsource_CONFIRMIssue Tracking
- https://github.com/advisories/GHSA-8r7q-cvjq-x353 Advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2014-8.yaml
- https://nvd.nist.gov/vuln/detail/CVE-2014-1402
- https://oss.oracle.com/pipermail/el-errata/2014-June/004192.html mailing-listx_refsource_MLIST
- https://web.archive.org/web/20150523060528/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2014:096/?name=MDVSA-2014:096
- https://www.cve.org/CVERecord?id=CVE-2014-1402
Change history (0)
No recorded changes yet.