CVE-2014-1402: High severity Pocoo Jinja2 vulnerability

Published Jan 9, 2014
·
Updated

Jinja2, a template engine written in pure python, was found to use /tmp as a default directory for jinja2.bccache.FileSystemBytecodeCache, which is insecure because the /tmp directory is world-writable and the filenames used by FileSystemBytecodeCache are predictable. A malicious local user could exploit this bug to alter output generated by other user's application using Jinja2 or possibly, execute arbitrary code as another user.

References: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747

Other sources

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.

GitHub

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.

MITRE

Affected Software

22 affected componentsFixes available
redhat/python-jinja2<2.7.3
2.7.3
pip/Jinja2<2.7.2
2.7.2
Pocoo Jinja2<=2.7.1
Pocoo Jinja2=2.0
Pocoo Jinja2=2.0-rc1
Pocoo Jinja2=2.1
Pocoo Jinja2=2.1.1
Pocoo Jinja2=2.2
Pocoo Jinja2=2.2.1
Pocoo Jinja2=2.3
Pocoo Jinja2=2.3.1
Pocoo Jinja2=2.4
Pocoo Jinja2=2.4.1
Pocoo Jinja2=2.5
Pocoo Jinja2=2.5.1
Pocoo Jinja2=2.5.2
Pocoo Jinja2=2.5.3
Pocoo Jinja2=2.5.4
Pocoo Jinja2=2.5.5
Pocoo Jinja2=2.6
Pocoo Jinja2=2.7
debian/jinja2
2.11.3-12.11.3-1+deb11u43.1.2-1+deb12u23.1.6-1

Event History

Jan 9, 2014
Data Sourced
via Debian·02:57 PM
SeverityAffected Software
Jan 10, 2014
Data Sourced
via Red Hat·09:36 AM
DescriptionSeverityAffected Software
May 19, 2014
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
Description
Data Sourced
via NVD·02:55 PM
DescriptionSeverityWeaknessAffected Software
May 14, 2022
Advisory Published
via GitHub·04:04 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2014-1402?

CVE-2014-1402 is classified as a medium severity vulnerability due to its potential for local escalation of privileges.

2

How do I fix CVE-2014-1402?

To fix CVE-2014-1402, upgrade to Jinja2 version 2.7.2 or later.

3

Which versions of Jinja2 are affected by CVE-2014-1402?

CVE-2014-1402 affects Jinja2 versions prior to 2.7.2, including versions 2.0 to 2.7.1.

4

Can a remote attacker exploit CVE-2014-1402?

No, CVE-2014-1402 is a local vulnerability that requires local access to exploit.

5

What is the impact of CVE-2014-1402?

The impact of CVE-2014-1402 is that a malicious local user could execute arbitrary code with the privileges of the application using Jinja2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203