{"answers":{"affected":"3 open source packages ship an affected version, including jinja2 and Jinja2. It affects 1 product.","exploited":"There is no known exploitation of CVE-2014-1402 in the wild and no public exploit code.","fix":"Upgrade jinja2 to 2.7.2 or later.","what":"CVE-2014-1402 is a medium-severity vulnerability in n/a, published on 19 May 2014. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2014-1402 and fix it if it is affected.\n\nWhat it is: CVE-2014-1402 is a medium-severity vulnerability in n/a, published on 19 May 2014. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2014-1402 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- jinja2 (PyPI): affected all versions; fixed in 2.7.2\n- jinja2 (PyPI): affected all versions; fixed in 2.7.2\n- Jinja2 (PyPI): affected all versions; fixed in 2.7.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2014-1402/ (Markdown: https://insights.sbomify.com/CVE-2014-1402/index.md)","id":"CVE-2014-1402","markdown":"https://insights.sbomify.com/CVE-2014-1402/index.md","name":"CVE-2014-1402","record":{"aliases":["DEBIAN-CVE-2014-1402","GHSA-8r7q-cvjq-x353","MGASA-2014-0028","PYSEC-2014-8","RHSA-2014:0747","RHSA-2014:0748"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python templating library","requires_auth":"none","summary":"Local attackers can escalate privileges by exploiting insecure temporary file creation in the default Jinja2 bytecode cache configuration.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"jinja2","vendor":"pocoo"}],"cvss":{"score":4.4,"severity":"medium","source":"nvd","vector":"AV:L/AC:M/Au:N/C:P/I:P/A:P","version":"2.0"},"cwes":[{"id":"CWE-264","name":null}],"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.","ecosystems":["PyPI","Red Hat:enterprise_linux:6::client","Red Hat:enterprise_linux:6::computenode","Red Hat:enterprise_linux:6::server","Red Hat:enterprise_linux:6::workstation","Red Hat:rhel_software_collections:1::el6","Red Hat:rhel_software_collections:1::el7"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Incorrect Privilege Assignment in Jinja2","id":"CVE-2014-1402","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"privilege_escalation","year":"2014"},"n_packages":15,"n_references":17,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2014-1403"},"packages":[{"ecosystem":"PyPI","fixed":["2.7.2"],"introduced":["0"],"last_affected":[],"package":"Jinja2","purl":null,"source":"GHSA-8r7q-cvjq-x353"},{"ecosystem":"PyPI","fixed":["2.7.2"],"introduced":["0"],"last_affected":[],"package":"jinja2","purl":"pkg:pypi/jinja2","source":"GHSA-8r7q-cvjq-x353"},{"ecosystem":"PyPI","fixed":["2.7.2"],"introduced":["0"],"last_affected":[],"package":"jinja2","purl":"pkg:pypi/jinja2","source":"PYSEC-2014-8"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:2.2.1-2.el6_5"],"introduced":["0"],"last_affected":[],"package":"python-jinja2","purl":"pkg:rpm/redhat/python-jinja2","source":"RHSA-2014:0747"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:2.2.1-2.el6_5"],"introduced":["0"],"last_affected":[],"package":"python-jinja2-debuginfo","purl":"pkg:rpm/redhat/python-jinja2-debuginfo","source":"RHSA-2014:0747"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:2.2.1-2.el6_5"],"introduced":["0"],"last_affected":[],"package":"python-jinja2","purl":"pkg:rpm/redhat/python-jinja2","source":"RHSA-2014:0747"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:2.2.1-2.el6_5"],"introduced":["0"],"last_affected":[],"package":"python-jinja2-debuginfo","purl":"pkg:rpm/redhat/python-jinja2-debuginfo","source":"RHSA-2014:0747"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:2.2.1-2.el6_5"],"introduced":["0"],"last_affected":[],"package":"python-jinja2","purl":"pkg:rpm/redhat/python-jinja2","source":"RHSA-2014:0747"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:2.2.1-2.el6_5"],"introduced":["0"],"last_affected":[],"package":"python-jinja2-debuginfo","purl":"pkg:rpm/redhat/python-jinja2-debuginfo","source":"RHSA-2014:0747"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:2.2.1-2.el6_5"],"introduced":["0"],"last_affected":[],"package":"python-jinja2","purl":"pkg:rpm/redhat/python-jinja2","source":"RHSA-2014:0747"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:2.2.1-2.el6_5"],"introduced":["0"],"last_affected":[],"package":"python-jinja2-debuginfo","purl":"pkg:rpm/redhat/python-jinja2-debuginfo","source":"RHSA-2014:0747"},{"ecosystem":"Red Hat:rhel_software_collections:1::el6","fixed":["0:2.6-10.el6"],"introduced":["0"],"last_affected":[],"package":"python27-python-jinja2","purl":"pkg:rpm/redhat/python27-python-jinja2","source":"RHSA-2014:0748"},{"ecosystem":"Red Hat:rhel_software_collections:1::el6","fixed":["0:2.6-11.el6"],"introduced":["0"],"last_affected":[],"package":"python33-python-jinja2","purl":"pkg:rpm/redhat/python33-python-jinja2","source":"RHSA-2014:0748"},{"ecosystem":"Red Hat:rhel_software_collections:1::el7","fixed":["0:2.6-11.el7"],"introduced":["0"],"last_affected":[],"package":"python27-python-jinja2","purl":"pkg:rpm/redhat/python27-python-jinja2","source":"RHSA-2014:0748"},{"ecosystem":"Red Hat:rhel_software_collections:1::el7","fixed":["0:2.6-12.el7"],"introduced":["0"],"last_affected":[],"package":"python33-python-jinja2","purl":"pkg:rpm/redhat/python33-python-jinja2","source":"RHSA-2014:0748"}],"prev":{"headline":"SQL injection in n/a","id":"CVE-2014-1401"},"products":["n/a"],"published":"2014-05-19","related":[{"cvss_score":4.4,"headline":"Insecure Temporary File in Jinja2","id":"CVE-2014-0012","kev_date_added":null,"published":"2014-05-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Local attackers can escalate privileges by exploiting insecure temporary file creation in the default Jinja2 bytecode cache configuration.","url":"https://insights.sbomify.com/CVE-2014-1402/"}