{"id":"CVE-2014-1402","aliases":["DEBIAN-CVE-2014-1402","EUVD-2014-0023","GHSA-8r7q-cvjq-x353","MGASA-2014-0028","PYSEC-2014-8","RHSA-2014:0747","RHSA-2014:0748","UBUNTU-CVE-2014-1402"],"status":"published","title":"Incorrect Privilege Assignment in Jinja2","description":"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.","severity":{"version":"2.0","score":4.4,"vector":"AV:L/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00373,"percentile":0.31438,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-264","CWE-266"],"published":"2014-01-24T21:04:09Z","modified":"2026-10-23T15:47:30Z","fixes":[{"ecosystem":"PyPI","package":"jinja2","fixed_in":["2.7.2"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"jinja2","fixed_in":["2.7.2-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"jinja2","fixed_in":["2.7.2-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"jinja2","fixed_in":["2.7.2-1"],"sources":["osv"]},{"ecosystem":"Mageia:3","package":"python-jinja2","fixed_in":["2.5.5-8.2.mga3"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::client","package":"python-jinja2","fixed_in":["0:2.2.1-2.el6_5"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::client","package":"python-jinja2-debuginfo","fixed_in":["0:2.2.1-2.el6_5"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","package":"python-jinja2","fixed_in":["0:2.2.1-2.el6_5"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","package":"python-jinja2-debuginfo","fixed_in":["0:2.2.1-2.el6_5"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::server","package":"python-jinja2","fixed_in":["0:2.2.1-2.el6_5"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::server","package":"python-jinja2-debuginfo","fixed_in":["0:2.2.1-2.el6_5"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","package":"python-jinja2","fixed_in":["0:2.2.1-2.el6_5"],"sources":["osv"]},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","package":"python-jinja2-debuginfo","fixed_in":["0:2.2.1-2.el6_5"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_software_collections:1::el6","package":"python27-python-jinja2","fixed_in":["0:2.6-10.el6"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_software_collections:1::el6","package":"python33-python-jinja2","fixed_in":["0:2.6-11.el6"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_software_collections:1::el7","package":"python27-python-jinja2","fixed_in":["0:2.6-11.el7"],"sources":["osv"]},{"ecosystem":"Red Hat:rhel_software_collections:1::el7","package":"python33-python-jinja2","fixed_in":["0:2.6-12.el7"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"jinja2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.2"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"jinja2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.2-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"jinja2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.2-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"jinja2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.2-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"jinja2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.2"}]}],"versions":["2.0","2.0rc1","2.1","2.1.1","2.2","2.2.1","2.3","2.3.1","2.4","2.4.1","2.5","2.5.1","2.5.2","2.5.3","2.5.4","2.5.5","2.6","2.7","2.7.1"]},{"source":"osv","ecosystem":"Mageia:3","package":"python-jinja2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.5-8.2.mga3"}]}]},{"source":"osv","ecosystem":"PyPI","package":"jinja2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.2"}]}],"versions":["2.0","2.0rc1","2.1","2.1.1","2.2","2.2.1","2.3","2.3.1","2.4","2.4.1","2.5","2.5.1","2.5.2","2.5.3","2.5.4","2.5.5","2.6","2.7","2.7.1"]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::client","package":"python-jinja2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.2.1-2.el6_5"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::client","package":"python-jinja2-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.2.1-2.el6_5"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::computenode","package":"python-jinja2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.2.1-2.el6_5"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::computenode","package":"python-jinja2-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.2.1-2.el6_5"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::server","package":"python-jinja2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.2.1-2.el6_5"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::server","package":"python-jinja2-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.2.1-2.el6_5"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::workstation","package":"python-jinja2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.2.1-2.el6_5"}]}]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:6::workstation","package":"python-jinja2-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.2.1-2.el6_5"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:1::el6","package":"python27-python-jinja2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6-10.el6"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:1::el6","package":"python33-python-jinja2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6-11.el6"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:1::el7","package":"python27-python-jinja2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6-11.el7"}]}]},{"source":"osv","ecosystem":"Red Hat:rhel_software_collections:1::el7","package":"python33-python-jinja2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.6-12.el7"}]}]}],"products":[{"vendor":"pocoo","product":"jinja2"}],"references":[{"url":"https://oss.oracle.com/pipermail/el-errata/2014-June/004192.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2014/01/10/3","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://secunia.com/advisories/59017","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/56287","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2014:096","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/58783","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/58918","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/60738","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1051421","tags":["x_refsource_CONFIRM","x_transferred","report","web"]},{"url":"http://secunia.com/advisories/60770","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://rhn.redhat.com/errata/RHSA-2014-0747.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"http://jinja.pocoo.org/docs/changelog/","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-201408-13.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","web"]},{"url":"http://openwall.com/lists/oss-security/2014/01/10/2","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://advisories.mageia.org/MGASA-2014-0028.html","tags":["x_refsource_CONFIRM","x_transferred","advisory","web"]},{"url":"http://rhn.redhat.com/errata/RHSA-2014-0748.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2014-1402","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-8r7q-cvjq-x353","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2014-8.yaml","tags":["web"]},{"url":"https://web.archive.org/web/20150523060528/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2014:096/?name=MDVSA-2014:096","tags":["web"]},{"url":"http://jinja.pocoo.org/docs/changelog","tags":["web"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2014-1402","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2014-0028.html","tags":["advisory"]},{"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747","tags":["report"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=12265","tags":["report"]},{"url":"https://access.redhat.com/errata/RHSA-2014:0747","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2014/rhsa-2014_0747.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2014-1402","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2014-1402","tags":["advisory","report"]},{"url":"https://access.redhat.com/errata/RHSA-2014:0748","tags":["advisory"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2014/rhsa-2014_0748.json","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2014-1402","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-2301-1","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2014-1402","description":"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.","status":"published","published":"2014-05-19T14:00:00Z","modified":"2024-08-06T09:42:35.316Z","updated_at":"2026-11-02T14:33:46.310517Z"}],"euvd":[{"id":"EUVD-2014-0023","description":"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.","status":"published","published":"2014-05-19T14:00:00Z","modified":"2024-08-06T09:42:35Z","updated_at":"2026-11-03T01:57:18.349202Z"}],"ghsa":[{"id":"GHSA-8r7q-cvjq-x353","title":"Incorrect Privilege Assignment in Jinja2","description":"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`.","status":"published","published":"2022-05-14T04:04:14Z","modified":"2024-09-24T18:41:57Z","cvss":[{"version":"4.0","score":8.6,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high"},{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-266"],"updated_at":"2026-11-02T14:38:05.526697Z"}],"nvd":[{"id":"CVE-2014-1402","description":"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.","status":"published","published":"2014-05-19T14:55:11.517Z","modified":"2026-06-17T00:04:51.283Z","cvss":[{"version":"2.0","score":4.4,"vector":"AV:L/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-264"],"updated_at":"2026-11-02T14:02:54.082915Z"}],"osv":[{"id":"GHSA-8r7q-cvjq-x353","title":"Incorrect Privilege Assignment in Jinja2","description":"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`.","status":"published","published":"2022-05-14T04:04:14Z","modified":"2024-09-24T18:48:44.375484Z","cvss":[{"version":"3.1","score":8.4,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"},{"version":"4.0","score":8.6,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-266"],"updated_at":"2026-11-02T15:46:42.78452Z"},{"id":"CVE-2014-1402","description":"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.","status":"published","published":"2014-05-19T14:55:11Z","modified":"2026-04-16T06:23:33.519568485Z","updated_at":"2026-11-02T15:43:59.361892Z"},{"id":"DEBIAN-CVE-2014-1402","description":"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.","status":"published","published":"2014-05-19T14:55:11.517Z","modified":"2026-10-23T15:47:30.521188911Z","updated_at":"2026-11-02T15:45:25.819707Z"},{"id":"MGASA-2014-0028","title":"Updated python-jinja2 package fixes two security vulnerabilities","description":"Updated python-jinja2 packages fix security vulnerability:\n\nJinja2, a template engine written in pure python, was found to use /tmp \nas a default directory for jinja2.bccache.FileSystemBytecodeCache, which \nis insecure because the /tmp directory is world-writable and the \nfilenames used like 'FileSystemBytecodeCache' are often predictable. A \nmalicious user could exploit this bug to execute arbitrary code as \nanother user. (CVE-2014-1402)\n","status":"published","published":"2014-01-24T21:04:09Z","modified":"2026-04-16T06:23:24.610391562Z","updated_at":"2026-11-02T15:49:39.121227Z"},{"id":"PYSEC-2014-8","description":"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.","status":"published","published":"2014-05-19T14:55:00Z","modified":"2023-11-08T03:57:34.512953Z","updated_at":"2026-11-02T15:52:51.645172Z"},{"id":"RHSA-2014:0747","title":"Red Hat Security Advisory: python-jinja2 security update","status":"published","published":"2024-09-22T16:23:04Z","modified":"2026-06-29T10:06:56Z","updated_at":"2026-11-02T15:53:02.532052Z"},{"id":"RHSA-2014:0748","title":"Red Hat Security Advisory: python33-python-jinja2 and python27-python-jinja2 security update","status":"published","published":"2024-09-22T16:23:14Z","modified":"2026-06-29T10:06:56Z","updated_at":"2026-11-02T15:53:02.532052Z"},{"id":"UBUNTU-CVE-2014-1402","description":"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.","status":"withdrawn","published":"2014-05-19T00:00:00Z","modified":"2026-02-04T03:44:40.042144Z","updated_at":"2026-11-02T15:54:07.855521Z"}]}}
