{"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-0012 in the wild and no public exploit code.","fix":"Upgrade jinja2 to a fixed version for your release line: 2.7.2 or 2.7.3.","what":"CVE-2014-0012 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-0012 and fix it if it is affected.\n\nWhat it is: CVE-2014-0012 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-0012 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.3\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-0012/ (Markdown: https://insights.sbomify.com/CVE-2014-0012/index.md)","id":"CVE-2014-0012","markdown":"https://insights.sbomify.com/CVE-2014-0012/index.md","name":"CVE-2014-0012","record":{"aliases":["DEBIAN-CVE-2014-0012","GHSA-fqh9-2qgg-h84h","PYSEC-2014-82","SUSE-SU-2015:1336-1","openSUSE-SU-2019:0244-1","openSUSE-SU-2024:10129-1"],"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":"low_privilege","summary":"Local attackers can escalate privileges by pre-creating temporary directories due to improper handling in the Jinja2 FileSystemBytecodeCache.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","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":"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.","ecosystems":["PyPI","SUSE:Cloud Compute Node for SUSE Linux Enterprise 12 5","SUSE:Enterprise Storage 1.0","SUSE:Package Hub 12","openSUSE:Tumbleweed"],"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":"Insecure Temporary File in Jinja2","id":"CVE-2014-0012","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"privilege_escalation","year":"2014"},"n_packages":7,"n_references":8,"next":{"headline":"Ember.js Cross-site Scripting vulnerability","id":"CVE-2014-0013"},"packages":[{"ecosystem":"PyPI","fixed":["2.7.2"],"introduced":["0"],"last_affected":[],"package":"Jinja2","purl":null,"source":"GHSA-fqh9-2qgg-h84h"},{"ecosystem":"PyPI","fixed":["2.7.2"],"introduced":["0"],"last_affected":[],"package":"jinja2","purl":"pkg:pypi/jinja2","source":"GHSA-fqh9-2qgg-h84h"},{"ecosystem":"PyPI","fixed":["2.7.3"],"introduced":["0"],"last_affected":[],"package":"jinja2","purl":"pkg:pypi/jinja2","source":"PYSEC-2014-82"},{"ecosystem":"SUSE:Cloud Compute Node for SUSE Linux Enterprise 12 5","fixed":["2.7.3-4.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Cloud%20Compute%20Node%20for%20SUSE%20Linux%20Enterprise%2012%205","source":"SUSE-SU-2015:1336-1"},{"ecosystem":"SUSE:Enterprise Storage 1.0","fixed":["2.7.3-4.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Enterprise%20Storage%201.0","source":"SUSE-SU-2015:1336-1"},{"ecosystem":"SUSE:Package Hub 12","fixed":["2.8-2.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Package%20Hub%2012","source":"openSUSE-SU-2019:0244-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.8-1.4"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/opensuse/python-Jinja2\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:10129-1"}],"prev":{"headline":"Memory corruption in TigerVNC","id":"CVE-2014-0011"},"products":["n/a"],"published":"2014-05-19","related":[{"cvss_score":4.4,"headline":"Incorrect Privilege Assignment in Jinja2","id":"CVE-2014-1402","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":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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 pre-creating temporary directories due to improper handling in the Jinja2 FileSystemBytecodeCache.","url":"https://insights.sbomify.com/CVE-2014-0012/"}