Incorrect Privilege Assignment in Jinja2
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | jinja2 | < 2.7.2 | 2.7.2 |
References
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747
- http://advisories.mageia.org/MGASA-2014-0028.html
- http://jinja.pocoo.org/docs/changelog/
- http://openwall.com/lists/oss-security/2014/01/10/3
- https://bugzilla.redhat.com/show_bug.cgi?id=1051421
- http://www.mandriva.com/security/advisories?name=MDVSA-2014:096
- http://openwall.com/lists/oss-security/2014/01/10/2
- http://secunia.com/advisories/59017
- http://secunia.com/advisories/58918
- http://secunia.com/advisories/60770
- http://secunia.com/advisories/60738
- http://secunia.com/advisories/56287
- http://www.gentoo.org/security/en/glsa/glsa-201408-13.xml
- https://oss.oracle.com/pipermail/el-errata/2014-June/004192.html
- http://secunia.com/advisories/58783
- http://rhn.redhat.com/errata/RHSA-2014-0748.html
- http://rhn.redhat.com/errata/RHSA-2014-0747.html
- https://github.com/advisories/GHSA-8r7q-cvjq-x353
- https://nvd.nist.gov/vuln/detail/CVE-2014-1402
- https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2014-8.yaml
- https://web.archive.org/web/20150523060528/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2014:096/?name=MDVSA-2014:096
- http://jinja.pocoo.org/docs/changelog
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-266- Platform
- Python (PyPI)
- Package
jinja2- Disclosed
- 19.05.2014
- Updated
- 11.10.2026 11:20
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2014-8 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-8r7q-cvjq-x353 - CC BY 4.0
Vulnerability history: jinja2
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 11
- First → latest
- 05.2014 06.2025
- Without a fix
- 1
- Exploited in attacks
- 0
Severity breakdown
- High 4
- Medium 7
Disclosures per year
- 2017: 0
- 2018: 0
- 2019: 2
- 2020: 0
- 2021: 1
- 2022: 0
- 2023: 0
- 2024: 4
- 2025: 2
- 2026: 0
earlier: 2
-
Incorrect Privilege Assignment in Jinja2 this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.