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

CVE-2014-1402: Incorrect Privilege Assignment in Jinja2

May 14, 2022 (updated September 24, 2024)

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

  • bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747
  • bugzilla.redhat.com/show_bug.cgi?id=1051421
  • github.com/advisories/GHSA-8r7q-cvjq-x353
  • github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2014-8.yaml
  • nvd.nist.gov/vuln/detail/CVE-2014-1402
  • oss.oracle.com/pipermail/el-errata/2014-June/004192.html
  • web.archive.org/web/20150523060528/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2014:096/?name=MDVSA-2014:096

Code Behaviors & Features

Detect and mitigate CVE-2014-1402 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 8.4 HIGH

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

Learn more about CVSS

Weakness

  • CWE-266: Incorrect Privilege Assignment

Source file

pypi/Jinja2/CVE-2014-1402.yml

Spotted a mistake? Edit the file on GitLab.

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

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