CVE-2014-0012
Insecure Temporary File in Jinja2
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.
Exploit likelihood
What each source reports
NVD Score used 4.4
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.
- Record
CVE-2014-0012- CVSS 2.0
- 4.4 Medium
AV:L/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-264
- Updated
- 2026-11-02
CVE ListNo score
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.
- Record
CVE-2014-0012- Updated
- 2026-11-02
EUVDEUVD-2014-0024No score
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.
- Record
EUVD-2014-0024- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-fqh9-2qgg-h84h 6.9
Insecure Temporary File in Jinja2
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.
- Record
GHSA-fqh9-2qgg-h84h- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N - CVSS 3.1
- 6.2 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-377
- Updated
- 2026-11-02
OSVBELL-CVE-2014-0012 4.4
CVE-2014-0012 does not affect BellSoft software
- Record
BELL-CVE-2014-0012- CVSS 2.0
- 4.4 Medium
AV:L/AC:M/Au:N/C:P/I:P/A:P - Updated
- 2026-11-02
OSVGHSA-fqh9-2qgg-h84h 6.9
Insecure Temporary File in Jinja2
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.
- Record
GHSA-fqh9-2qgg-h84h- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N - CVSS 3.1
- 6.2 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-377
- Updated
- 2026-11-02
Show 12 moreShow less
OSVNo score
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.
- Record
CVE-2014-0012- Updated
- 2026-11-02
OSVDEBIAN-CVE-2014-0012No score
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.
- Record
DEBIAN-CVE-2014-0012- Updated
- 2026-11-02
OSVopenSUSE-SU-2019:0244-1No score
Security update for python-Jinja2
This update for python-Jinja2 fixes the following issues:
Update to 2.8
- Added
targetparameter to urlize function. - Added support for
followsymlinksto the file system loader. - The truncate filter now counts the length.
- Added equalto filter that helps with select filters.
- Changed cache keys to use absolute file names if available instead of load names.
- Fixed loop length calculation for some iterators.
- Changed how Jinja2 enforces strings to be native strings in Python 2 to work when people break their default encoding.
- Added :func:
make_logging_undefinedwhich returns an undefined object that logs failures into a logger. - If unmarshalling of cached data fails the template will be reloaded now.
- Implemented a block
settag. - Default cache size was incrased to 400 from a low 50.
- Fixed
is numbertest to accept long integers in all Python versions. - Changed
is numberto accept Decimal as a number. - Added a check for default arguments followed by non-default arguments. This
change makes
{% macro m(x, y=1, z) %}...{% endmacro %}a syntax error. The previous behavior for this code was broken anyway (resulting in the default value being applied toy). - Add ability to use custom subclasses of
jinja2.compiler.CodeGeneratorandjinja2.runtime.Contextby adding two new attributes to the environment (code_generator_classandcontext_class) (pull request#404). - added support for context/environment/evalctx decorator functions on the finalize callback of the environment.
- escape query strings for urlencode properly. Previously slashes were not escaped in that place.
- Add 'base' parameter to 'int' filter.
- Added
Tests are removed from the package (not distributed in the tar.gz)
Use %python_version over %py_ver: better portability to RHEL
run testsuite during build
adjust dependency to use up to date package name for python-MarkupSafe
Update to 2.7.3 (boo#858239, CVE-2014-0012)
- Security issue: Corrected the security fix for the cache folder.
This fix was provided by RedHat.
- Security issue: Corrected the security fix for the cache folder.
fix package build (file selection missing)
avoid rebuildcycle with vim
update to 2.7.2:
- Prefix loader was not forwarding the locals properly to inner loaders. This is now fixed.
- Security issue: Changed the default folder for the filesystem cache to be
user specific and read and write protected on UNIX systems. See
Debian bug 734747_ for more information.
Require python-setuptools instead of distribute (upstreams merged)
Avoid 'Recommends:' on old rpm distros
update to 2.7.1:
Fixed a bug with
call_filternot working properly on environment and context filters.Fixed lack of Python 3 support for bytecode caches.
Reverted support for defining blocks in included templates as this broke existing templates for users.
Fixed some warnings with hashing of undefineds and nodes if Python is run with warnings for Python 3.
Added support for properly hashing undefined objects.
Fixed a bug with the title filter not working on already uppercase strings.
update to 2.7:
- Choice and prefix loaders now dispatch source and template lookup separately in order to work in combination with module loaders as advertised.
- Fixed filesizeformat.
- Added a non-silent option for babel extraction.
- Added
urlencodefilter that automatically quotes values for URL safe usage with utf-8 as only supported encoding. If applications want to change this encoding they can override the filter. - Added
keep-trailing-newlineconfiguration to environments and templates to optionally preserve the final trailing newline. - Accessing
laston the loop context no longer causes the iterator to be consumed into a list. - Python requirement changed: 2.6, 2.7 or >= 3.3 are required now, supported by same source code, using the 'six'…
- Record
openSUSE-SU-2019:0244-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10129-1No score
python-Jinja2-2.8-1.4 on GA media
These are all security issues fixed in the python-Jinja2-2.8-1.4 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10129-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11208-1No score
python36-Jinja2-3.0.1-3.2 on GA media
These are all security issues fixed in the python36-Jinja2-3.0.1-3.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11208-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:13930-1No score
python310-Jinja2-3.1.4-1.1 on GA media
These are all security issues fixed in the python310-Jinja2-3.1.4-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13930-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:11992-1No score
python313-Jinja2-3.1.6-2.4 on GA media
These are all security issues fixed in the python313-Jinja2-3.1.6-2.4 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:11992-1- Updated
- 2026-11-02
OSVPYSEC-2014-82No score
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.
- Record
PYSEC-2014-82- Updated
- 2026-11-02
OSVSUSE-FU-2022:0444-1No score
Feature update for venv-salt-minion
This feature update for venv-salt-minion provides the following changes:
- Introduce
venv-salt-minion. - Track already fixed issues.
- Record
SUSE-FU-2022:0444-1- Updated
- 2026-11-02
OSVSUSE-FU-2022:0445-1No score
Feature update for venv-salt-minion
This feature update for venv-salt-minion provides the following changes:
- Introduce
venv-salt-minion. - Mention fixed issues provided with the bundle.
- Record
SUSE-FU-2022:0445-1- Updated
- 2026-11-02
OSVSUSE-SU-2015:1336-1No score
Security update for python-Jinja2
The python-Jinja2 package was updated to version 2.7.3 to fix a security issues and some build problems.
The following vulnerabilities were fixed:
- Update to 2.7.3 (bnc#858239, CVE-2014-0012)
- Security issue: Corrected the security fix for the cache folder.
This fix was provided by RedHat.
- Security issue: Corrected the security fix for the cache folder.
The following build issues were fixed:
- run testsuite during build
- adjust dependency to use up to date package name for python-MarkupSafe
- fix package build (file selection missing)
- Record
SUSE-SU-2015:1336-1- Updated
- 2026-11-02
OSVUBUNTU-CVE-2014-0012No score
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.
- Record
UBUNTU-CVE-2014-0012- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
jinja2PyPI | before 2.7.2 | 2.7.2 |
jinja2Debian:12 | before 2.7.2-2 | 2.7.2-2 |
jinja2Debian:13 | before 2.7.2-2 | 2.7.2-2 |
jinja2Debian:14 | before 2.7.2-2 | 2.7.2-2 |
jinja2PyPI | before 2.7.2, plus listed versions 2.02.0rc12.12.1.12.2 Show 14 moreShow less2.2.12.32.3.12.42.4.12.52.5.12.5.22.5.32.5.42.5.52.62.72.7.1 | 2.7.2 |
jinja2PyPI | before 2.7.3, plus listed versions 2.02.0rc12.12.1.12.2 Show 15 moreShow less2.2.12.32.3.12.42.4.12.52.5.12.5.22.5.32.5.42.5.52.62.72.7.12.7.2 | 2.7.3 |
python-Jinja2SUSE:Cloud Compute Node for SUSE Linux Enterprise 12 5 | before 2.7.3-4.1 | 2.7.3-4.1 |
python-Jinja2SUSE:Enterprise Storage 1.0 | before 2.7.3-4.1 | 2.7.3-4.1 |
python-Jinja2SUSE:Package Hub 12 | before 2.8-2.1 | 2.8-2.1 |
python-Jinja2openSUSE:Tumbleweed | before 2.8-1.4 | 2.8-1.4 |
python-Jinja2openSUSE:Tumbleweed From an advisory covering 4 CVEs | before 3.0.1-3.2 | 3.0.1-3.2 |
python-Jinja2openSUSE:Tumbleweed From an advisory covering 5 CVEs | before 3.1.4-1.1 | 3.1.4-1.1 |
python-Jinja2openSUSE:Tumbleweed From an advisory covering 6 CVEs | before 3.1.6-2.4 | 3.1.6-2.4 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2014-0012 is a medium vulnerability (CVSS 4.4) in Pocoo Jinja2, published May 19, 2014. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.43%, the 37th percentile. Fixed in jinja2 2.7.2.
References
github.com/mitsuhiko/jinja2/pull/292
secunia.com/advisories/56328
bugzilla.redhat.com/show_bug.cgi?id=1051421
secunia.com/advisories/60738
github.com/mitsuhiko/jinja2/commit/acb672b6a179567632e032f547582f30fa2f4aa7
github.com/mitsuhiko/jinja2/pull/296
Show 194 moreShow less
gentoo.org/security/en/glsa/glsa-201408-13.xml
seclists.org/oss-sec/2014/q1/73
nvd.nist.gov/vuln/detail/CVE-2014-0012
github.com/pallets/jinja2/pull/292
github.com/pallets/jinja2/pull/296
github.com/pallets/jinja/commit/acb672b6a179567632e032f547582f30fa2f4aa7
bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747
github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2014-82.yaml
github.com/advisories/GHSA-fqh9-2qgg-h84h
docs.bell-sw.com/security/cves/CVE-2014-0012
security-tracker.debian.org/tracker/CVE-2014-0012
github.com/pallets/jinja2
suse.com/support/update/announcement/-2022-444/suse-fu-20220444-1
bugzilla.suse.com/1000080
bugzilla.suse.com/1000117
bugzilla.suse.com/1000194
bugzilla.suse.com/1000742
bugzilla.suse.com/1002895
bugzilla.suse.com/1003091
bugzilla.suse.com/1005246
bugzilla.suse.com/1010874
bugzilla.suse.com/1010966
bugzilla.suse.com/1011936
bugzilla.suse.com/1015549
bugzilla.suse.com/1027610
bugzilla.suse.com/1027705
bugzilla.suse.com/1029902
bugzilla.suse.com/1030038
bugzilla.suse.com/1032118
bugzilla.suse.com/1032119
bugzilla.suse.com/1035604
bugzilla.suse.com/1039469
bugzilla.suse.com/1040164
bugzilla.suse.com/1040256
bugzilla.suse.com/1041090
bugzilla.suse.com/1042670
bugzilla.suse.com/1049186
bugzilla.suse.com/1049304
bugzilla.suse.com/1050653
bugzilla.suse.com/1050665
bugzilla.suse.com/1055478
bugzilla.suse.com/1055542
bugzilla.suse.com/1056951
bugzilla.suse.com/1057496
bugzilla.suse.com/1062237
bugzilla.suse.com/1066873
bugzilla.suse.com/1068790
bugzilla.suse.com/1070737
bugzilla.suse.com/1070738
bugzilla.suse.com/1070853
bugzilla.suse.com/1071941
bugzilla.suse.com/1073310
bugzilla.suse.com/1073845
bugzilla.suse.com/1073879
bugzilla.suse.com/1074247
bugzilla.suse.com/1076519
bugzilla.suse.com/1077096
bugzilla.suse.com/1077230
bugzilla.suse.com/1078329
bugzilla.suse.com/1079761
bugzilla.suse.com/1080301
bugzilla.suse.com/1081005
bugzilla.suse.com/1081750
bugzilla.suse.com/1081751
bugzilla.suse.com/1082155
bugzilla.suse.com/1082163
bugzilla.suse.com/1082318
bugzilla.suse.com/1083826
bugzilla.suse.com/1084117
bugzilla.suse.com/1084157
bugzilla.suse.com/1085276
bugzilla.suse.com/1085529
bugzilla.suse.com/1085661
bugzilla.suse.com/1087104
bugzilla.suse.com/1088573
bugzilla.suse.com/1090427
bugzilla.suse.com/1090953
bugzilla.suse.com/1093518
bugzilla.suse.com/1093917
bugzilla.suse.com/1094788
bugzilla.suse.com/1094814
bugzilla.suse.com/1094883
bugzilla.suse.com/1095267
bugzilla.suse.com/1096738
bugzilla.suse.com/1096937
bugzilla.suse.com/1097531
bugzilla.suse.com/1098535
bugzilla.suse.com/1099308
bugzilla.suse.com/1099569
bugzilla.suse.com/1102868
bugzilla.suse.com/1108508
bugzilla.suse.com/1109882
bugzilla.suse.com/1109998
bugzilla.suse.com/1110435
bugzilla.suse.com/1110869
bugzilla.suse.com/1110871
bugzilla.suse.com/1111493
bugzilla.suse.com/1111622
bugzilla.suse.com/1111657
bugzilla.suse.com/1112357
bugzilla.suse.com/1115769
bugzilla.suse.com/1118611
suse.com/security/cve/CVE-2011-3389
suse.com/security/cve/CVE-2011-4944
suse.com/security/cve/CVE-2012-0845
suse.com/security/cve/CVE-2012-1150
suse.com/security/cve/CVE-2013-1752
suse.com/security/cve/CVE-2013-4238
suse.com/security/cve/CVE-2013-4314
suse.com/security/cve/CVE-2014-0012
suse.com/security/cve/CVE-2014-1829
suse.com/security/cve/CVE-2014-1830
suse.com/security/cve/CVE-2014-2667
suse.com/security/cve/CVE-2014-4650
suse.com/security/cve/CVE-2014-7202
suse.com/security/cve/CVE-2014-7203
suse.com/security/cve/CVE-2014-9721
suse.com/security/cve/CVE-2015-2296
suse.com/security/cve/CVE-2016-10745
suse.com/security/cve/CVE-2016-9015
suse.com/security/cve/CVE-2017-18342
suse.com/security/cve/CVE-2018-18074
suse.com/security/cve/CVE-2018-20060
suse.com/security/cve/CVE-2018-7750
suse.com/security/cve/CVE-2019-10906
suse.com/security/cve/CVE-2019-11236
suse.com/security/cve/CVE-2019-11324
suse.com/security/cve/CVE-2019-13132
suse.com/security/cve/CVE-2019-20907
suse.com/security/cve/CVE-2019-20916
suse.com/security/cve/CVE-2019-5010
suse.com/security/cve/CVE-2019-6250
suse.com/security/cve/CVE-2019-8341
suse.com/security/cve/CVE-2019-9740
suse.com/security/cve/CVE-2019-9947
suse.com/security/cve/CVE-2020-14343
suse.com/security/cve/CVE-2020-15166
suse.com/security/cve/CVE-2020-15523
suse.com/security/cve/CVE-2020-15801
suse.com/security/cve/CVE-2020-1747
suse.com/security/cve/CVE-2020-25659
suse.com/security/cve/CVE-2020-26137
suse.com/security/cve/CVE-2020-27783
suse.com/security/cve/CVE-2020-28493
suse.com/security/cve/CVE-2020-29651
suse.com/security/cve/CVE-2020-36242
suse.com/security/cve/CVE-2020-8492
suse.com/security/cve/CVE-2021-23336
suse.com/security/cve/CVE-2021-28957
suse.com/security/cve/CVE-2021-29921
suse.com/security/cve/CVE-2021-3177
suse.com/security/cve/CVE-2021-33503
suse.com/security/cve/CVE-2021-3426
suse.com/support/update/announcement/-2022-445/suse-fu-20220445-1
suse.com/security/cve/CVE-2006-2937
suse.com/security/cve/CVE-2006-2940
suse.com/security/cve/CVE-2006-3738
suse.com/security/cve/CVE-2006-4339
suse.com/security/cve/CVE-2006-4343
suse.com/security/cve/CVE-2006-7250
suse.com/security/cve/CVE-2007-3108
suse.com/security/cve/CVE-2007-4995
suse.com/security/cve/CVE-2007-5135
suse.com/security/cve/CVE-2008-0891
suse.com/security/cve/CVE-2008-1672
suse.com/security/cve/CVE-2008-5077
suse.com/security/cve/CVE-2009-0590
suse.com/security/cve/CVE-2009-0591
suse.com/security/cve/CVE-2009-0789
suse.com/security/cve/CVE-2009-1377
suse.com/security/cve/CVE-2009-1378
suse.com/security/cve/CVE-2009-1379
suse.com/security/cve/CVE-2009-1386
suse.com/security/cve/CVE-2009-1387
suse.com/security/cve/CVE-2010-0740
suse.com/security/cve/CVE-2010-0742
suse.com/security/cve/CVE-2010-1633
suse.com/security/cve/CVE-2010-2939
suse.com/security/cve/CVE-2010-3864
suse.com/security/cve/CVE-2010-5298
suse.com/security/cve/CVE-2011-0014
suse.com/security/cve/CVE-2011-3207
suse.com/security/cve/CVE-2011-3210
suse.com/security/cve/CVE-2011-4108
suse.com/security/cve/CVE-2011-4576
suse.com/security/cve/CVE-2011-4577
suse.com/security/cve/CVE-2011-4619
suse.com/security/cve/CVE-2012-0027
suse.com/security/cve/CVE-2012-0050
suse.com/security/cve/CVE-2012-0884
ubuntu.com/security/CVE-2014-0012
ubuntu.com/security/notices/USN-2301-1
cve.org/CVERecord?id=CVE-2014-0012
lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/J6U2NCERMUWAZTZY5VD4C4YB2XD5EDKW
Left out here: 492 references and the rest of 1 source description. The JSON record has them.