{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"low\"}"}}}], "affected": [{"vendor": "debian", "product": "python-jinja2", "versions": [{"status": "affected", "version": "0", "lessThan": "2.7.2-1", "versionType": "deb"}], "platforms": ["bookworm", "forky", "sid", "trixie"], "defaultStatus": "unaffected"}, {"vendor": "debian", "product": "python-jinja2-doc", "versions": [{"status": "affected", "version": "0", "lessThan": "2.7.2-1", "versionType": "deb"}], "platforms": ["bookworm", "forky", "sid", "trixie"], "defaultStatus": "unaffected"}, {"vendor": "debian", "product": "python3-jinja2", "versions": [{"status": "affected", "version": "0", "lessThan": "2.7.2-1", "versionType": "deb"}], "platforms": ["bookworm", "forky", "sid", "trixie"], "defaultStatus": "unaffected"}], "references": [{"url": "https://security-tracker.debian.org/tracker/CVE-2014-1402"}], "descriptions": [{"lang": "en", "value": "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."}], "providerMetadata": {"orgId": "79363d38-fa19-49d1-9214-5f28da3f3ac5", "shortName": "debian", "dateUpdated": "2014-05-19T14:00:00.000Z", "x_subShortName": "debian"}}, {"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 4.4, "accessVector": "LOCAL", "vectorString": "AV:L/AC:M/Au:N/C:P/I:P/A:P", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"MODERATE\"}"}}}], "affected": [{"vendor": "oraclelinux", "product": "python-jinja2", "versions": [{"status": "affected", "version": "0", "lessThan": "0:2.2.1-2.el6_5", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:6"], "defaultStatus": "unaffected"}], "references": [{"url": "https://linux.oracle.com/cve/CVE-2014-1402.html"}], "descriptions": [{"lang": "en", "value": "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."}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000006", "shortName": "oraclelinux", "dateUpdated": "2014-06-11T00:00:00Z", "x_subShortName": "oraclelinux"}}, {"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 4.4, "accessVector": "LOCAL", "vectorString": "AV:L/AC:M/Au:N/C:P/I:P/A:P", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Moderate\"}"}}}], "affected": [{"vendor": "redhat", "product": "python-jinja2", "versions": [{"status": "affected", "version": "0", "lessThan": "0:2.2.1-2.el6_5", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:6"], "defaultStatus": "unaffected"}], "references": [{"url": "https://access.redhat.com/errata/RHSA-2014:0747"}, {"url": "https://access.redhat.com/security/cve/CVE-2014-1402"}], "descriptions": [{"lang": "en", "value": "Jinja2 is a template engine written in pure Python. It provides a\nDjango-inspired, non-XML syntax but supports inline expressions and an\noptional sandboxed environment.\n\nIt was discovered that Jinja2 did not properly handle bytecode cache files\nstored in the system's temporary directory. A local attacker could use this\nflaw to alter the output of an application using Jinja2 and\nFileSystemBytecodeCache, and potentially execute arbitrary code with the\nprivileges of that application. (CVE-2014-1402)\n\nAll python-jinja2 users are advised to upgrade to these updated packages,\nwhich contain a backported patch to correct this issue. For the update to\ntake effect, all applications using python-jinja2 must be restarted."}], "providerMetadata": {"orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "shortName": "redhat", "dateUpdated": "2014-01-09T00:00:00Z", "x_subShortName": "redhat_6"}}, {"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 4.4, "accessVector": "LOCAL", "vectorString": "AV:L/AC:M/Au:N/C:P/I:P/A:P", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Moderate\"}"}}}], "affected": [{"vendor": "redhat", "product": "python-jinja2", "platforms": ["cpe:/o:redhat:enterprise_linux:7"], "defaultStatus": "unaffected"}], "references": [{"url": "https://access.redhat.com/security/cve/CVE-2014-1402"}], "descriptions": [{"lang": "en", "value": "Red Hat's versions of the associated software have been determined to NOT be affected by CVE-2014-1402."}], "providerMetadata": {"orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "shortName": "redhat", "dateUpdated": "2014-01-09T00:00:00Z", "x_subShortName": "redhat_7"}}, {"metrics": [{"cvssV3_1": {"scope": "UNCHANGED", "version": "3.1", "baseScore": 8.4, "attackVector": "LOCAL", "baseSeverity": "HIGH", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "integrityImpact": "HIGH", "userInteraction": "NONE", "attackComplexity": "LOW", "availabilityImpact": "HIGH", "privilegesRequired": "NONE", "confidentialityImpact": "HIGH"}}, {"cvssV4_0": {"version": "4.0", "baseScore": 8.6, "attackVector": "LOCAL", "baseSeverity": "HIGH", "vectorString": "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", "userInteraction": "NONE", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "subIntegrityImpact": "NONE", "vulnIntegrityImpact": "HIGH", "subAvailabilityImpact": "NONE", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "vulnConfidentialityImpact": "HIGH"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"HIGH\"}"}}}], "affected": [{"vendor": "pypi", "product": "jinja2", "versions": [{"status": "affected", "version": "0", "lessThan": "2.7.2", "versionType": "custom"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://advisories.mageia.org/MGASA-2014-0028.html"}, {"url": "http://jinja.pocoo.org/docs/changelog"}, {"url": "http://jinja.pocoo.org/docs/changelog/"}, {"url": "http://openwall.com/lists/oss-security/2014/01/10/2"}, {"url": "http://openwall.com/lists/oss-security/2014/01/10/3"}, {"url": "http://rhn.redhat.com/errata/RHSA-2014-0747.html"}, {"url": "http://rhn.redhat.com/errata/RHSA-2014-0748.html"}, {"url": "http://secunia.com/advisories/56287"}, {"url": "http://secunia.com/advisories/58783"}, {"url": "http://secunia.com/advisories/58918"}, {"url": "http://secunia.com/advisories/59017"}, {"url": "http://secunia.com/advisories/60738"}, {"url": "http://secunia.com/advisories/60770"}, {"url": "http://www.gentoo.org/security/en/glsa/glsa-201408-13.xml"}, {"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2014:096"}, {"url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747"}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=1051421"}, {"url": "https://github.com/advisories/GHSA-8r7q-cvjq-x353"}, {"url": "https://github.com/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2014-8.yaml"}, {"url": "https://nvd.nist.gov/vuln/detail/CVE-2014-1402"}, {"url": "https://oss.oracle.com/pipermail/el-errata/2014-June/004192.html"}, {"url": "https://web.archive.org/web/20150523060528/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2014:096/?name=MDVSA-2014:096"}], "descriptions": [{"lang": "en", "value": "Incorrect Privilege Assignment in Jinja2"}, {"lang": "en", "value": "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`."}, {"lang": "en", "value": "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."}], "providerMetadata": {"orgId": "28c92f92-d60d-412d-b760-e73465c3df22", "shortName": "pypi", "dateUpdated": "2014-05-19T14:55:00Z", "x_subShortName": "pypi"}}, {"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 4.4, "accessVector": "LOCAL", "vectorString": "AV:L/AC:M/Au:N/C:P/I:P/A:P", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}], "affected": [{"vendor": "amazon", "product": "python-jinja2", "versions": [{"status": "affected", "version": "0", "lessThan": "2.7.2-2.10.amzn1", "versionType": "rpm"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-1402"}], "descriptions": [{"lang": "en", "value": "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."}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000000", "shortName": "alas", "dateUpdated": "2014-07-09T16:39:00Z", "x_subShortName": "alas_1"}}, {"affected": [{"vendor": "unknown", "product": "unknown", "defaultStatus": "unknown"}], "references": [{"url": "https://www.cve.org/CVERecord?id=CVE-2014-1402"}], "descriptions": [{"lang": "en", "value": "not defined"}], "providerMetadata": {"orgId": "cc1ad9ee-3454-478d-9317-d3e869d708bc", "shortName": "canonical", "dateUpdated": "2000-01-01T00:00:00Z", "x_subShortName": "canonical"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 4.4, "accessVector": "LOCAL", "vectorString": "AV:L/AC:M/Au:N/C:P/I:P/A:P", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}], "affected": [{"cpes": ["cpe:2.3:a:pocoo:jinja2:*:*:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.0:-:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.0:rc1:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.1.1:*:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.1:*:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.2.1:*:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.2:*:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.3.1:*:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.3:*:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.4.1:*:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.4:*:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.5.1:*:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.5.2:*:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.5.3:*:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.5.4:*:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.5.5:*:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.5:*:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.6:*:*:*:*:*:*:*", "cpe:2.3:a:pocoo:jinja2:2.7:*:*:*:*:*:*:*"], "vendor": "pocoo", "product": "jinja2", "versions": [{"status": "affected", "version": "0", "versionType": "custom", "lessThanOrEqual": "2.7.1"}, {"status": "affected", "version": "2.0"}, {"status": "affected", "version": "2.1"}, {"status": "affected", "version": "2.1.1"}, {"status": "affected", "version": "2.2"}, {"status": "affected", "version": "2.2.1"}, {"status": "affected", "version": "2.3"}, {"status": "affected", "version": "2.3.1"}, {"status": "affected", "version": "2.4"}, {"status": "affected", "version": "2.4.1"}, {"status": "affected", "version": "2.5"}, {"status": "affected", "version": "2.5.1"}, {"status": "affected", "version": "2.5.2"}, {"status": "affected", "version": "2.5.3"}, {"status": "affected", "version": "2.5.4"}, {"status": "affected", "version": "2.5.5"}, {"status": "affected", "version": "2.6"}, {"status": "affected", "version": "2.7"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://advisories.mageia.org/MGASA-2014-0028.html"}, {"url": "http://jinja.pocoo.org/docs/changelog/"}, {"url": "http://openwall.com/lists/oss-security/2014/01/10/2"}, {"url": "http://openwall.com/lists/oss-security/2014/01/10/3"}, {"url": "http://rhn.redhat.com/errata/RHSA-2014-0747.html"}, {"url": "http://rhn.redhat.com/errata/RHSA-2014-0748.html"}, {"url": "http://secunia.com/advisories/56287"}, {"url": "http://secunia.com/advisories/58783"}, {"url": "http://secunia.com/advisories/58918"}, {"url": "http://secunia.com/advisories/59017"}, {"url": "http://secunia.com/advisories/60738"}, {"url": "http://secunia.com/advisories/60770"}, {"url": "http://www.gentoo.org/security/en/glsa/glsa-201408-13.xml"}, {"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2014:096"}, {"url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747"}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=1051421"}, {"url": "https://oss.oracle.com/pipermail/el-errata/2014-June/004192.html"}], "descriptions": [{"lang": "en", "value": "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."}, {"lang": "es", "value": "La configuración por defecto para bccache.FileSystemBytecodeCache en Jinja2 anterior a 2.7.2 no crea debidamente archivos temporales, lo que permite a usuarios locales ganar privilegios a través de un archivo .cache manipulado con un nombre que empieza con __jinja2_ en /tmp."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-264", "description": "CWE-264"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2014-05-19T14:55:11Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2014-1402", "state": "PUBLISHED", "dateUpdated": "2025-04-12T10:46:40Z", "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca", "datePublished": "2014-05-19T14:55:11Z", "assignerShortName": "mitre"}, "dataVersion": "5.0"}