CVE-2014-0012: Insecure Temporary File in Jinja2

CVE-2014-0012 · Severity: low · CVSS 3.1 · Published 2014-05-19

FileSystemBytecodeCache in Jinja2 2.7.2 does not properly create temporary directories, which allows local users to gain privileges by pre-creating a temporary directory with a user's uid. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-1402.

Technologies: jinja2 (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2014-0012 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2014-0012 being exploited in the wild.
How severe is CVE-2014-0012?
Low severity, with a CVSS score of 3.1, published 19 May 2014.
Which products and versions are affected?
jinja2 (PyPI) ECOSYSTEM:introduced=0,fixed=2.7.2, GIT:introduced=0,fixed=acb672b6a179567632e032f547582f30fa2f4aa7|ECOSYSTEM:introduced=0,fixed=2.7.3.
Is there a fix for CVE-2014-0012?
Yes. jinja2 (PyPI): upgrade to 2.7.2, 2.7.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2014-0012?
Check whether you run jinja2 (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • jinja2 (PyPI): upgrade to 2.7.2, 2.7.3 or later
    pip install "jinja2>=2.7.3"

Affected products

  • jinja2 (PyPI) ECOSYSTEM:introduced=0,fixed=2.7.2, GIT:introduced=0,fixed=acb672b6a179567632e032f547582f30fa2f4aa7|ECOSYSTEM:introduced=0,fixed=2.7.3

Identifiers

  • CVE-2014-0012
  • GHSA-fqh9-2qgg-h84h
  • PYSEC-2014-82

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.