Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Jinja2
  4. ›
  5. CVE-2014-0012

CVE-2014-0012: Insecure Temporary File in Jinja2

May 17, 2022 (updated September 23, 2024)

FileSystemBytecodeCache in Jinja2 prior to version 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.

References

  • bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747
  • bugzilla.redhat.com/show_bug.cgi?id=1051421
  • github.com/advisories/GHSA-fqh9-2qgg-h84h
  • github.com/mitsuhiko/jinja2/commit/acb672b6a179567632e032f547582f30fa2f4aa7
  • github.com/mitsuhiko/jinja2/pull/292
  • github.com/mitsuhiko/jinja2/pull/296
  • github.com/pallets/jinja/commit/acb672b6a179567632e032f547582f30fa2f4aa7
  • github.com/pallets/jinja2
  • github.com/pallets/jinja2/pull/292
  • github.com/pallets/jinja2/pull/296
  • github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2014-82.yaml
  • nvd.nist.gov/vuln/detail/CVE-2014-0012

Code Behaviors & Features

Detect and mitigate CVE-2014-0012 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.7.2

Fixed versions

  • 2.7.2

Solution

Upgrade to version 2.7.2 or above.

Impact 6.2 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-377: Insecure Temporary File

Source file

pypi/Jinja2/CVE-2014-0012.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:16 +0000.