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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2014-1402
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747
- https://bugzilla.redhat.com/show_bug.cgi?id=1051421
- https://oss.oracle.com/pipermail/el-errata/2014-June/004192.html
- http://advisories.mageia.org/MGASA-2014-0028.html
- http://jinja.pocoo.org/docs/changelog/
- http://openwall.com/lists/oss-security/2014/01/10/2
- http://openwall.com/lists/oss-security/2014/01/10/3
- http://rhn.redhat.com/errata/RHSA-2014-0747.html
- http://rhn.redhat.com/errata/RHSA-2014-0748.html
- http://www.gentoo.org/security/en/glsa/glsa-201408-13.xml
- https://github.com/advisories/GHSA-8r7q-cvjq-x353