{"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-2016-10745 in the wild and no public exploit code.","fix":"Upgrade jinja2 to 2.8.1 or later.","what":"CVE-2016-10745 is a high-severity code injection vulnerability in n/a, published on 8 Apr 2019. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2016-10745 and fix it if it is affected.\n\nWhat it is: CVE-2016-10745 is a high-severity code injection vulnerability in n/a, published on 8 Apr 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2016-10745 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- jinja2 (PyPI): affected all versions; fixed in 2.8.1\n- jinja2 (PyPI): affected all versions; fixed in 2.8.1\n- Jinja2 (PyPI): affected all versions; fixed in 2.8.1\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-2016-10745/ (Markdown: https://insights.sbomify.com/CVE-2016-10745/index.md)","id":"CVE-2016-10745","markdown":"https://insights.sbomify.com/CVE-2016-10745/index.md","name":"CVE-2016-10745","record":{"aliases":["DEBIAN-CVE-2016-10745","GHSA-hj2j-77xm-mc5v","PYSEC-2019-220","RHSA-2019:1022","RHSA-2019:3964","RHSA-2019:4062","SUSE-SU-2019:1323-1","UBUNTU-CVE-2016-10745"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python templating library","requires_auth":"none","summary":"Attackers can execute arbitrary code by exploiting a sandbox escape in the str.format method of the Jinja templating library.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"jinja","vendor":"palletsprojects"}],"cvss":{"score":8.6,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-134","name":"Use of Externally-Controlled Format String"}],"description":"In Pallets Jinja before 2.8.1, str.format allows a sandbox escape.","ecosystems":["PyPI","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:rhel_aus:7.4::server","Red Hat:rhel_e4s:7.4::server","Red Hat:rhel_eus:7.5::computenode","Red Hat:rhel_eus:7.5::server","Red Hat:rhel_tus:7.4::server","SUSE:Linux Enterprise Module for Advanced Systems Management 12","SUSE:Linux Enterprise Module for Public Cloud 12","SUSE:Manager Client Tools 12"],"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":"Jinja2 sandbox escape vulnerability","id":"CVE-2016-10745","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2016"},"n_packages":15,"n_references":11,"next":{"headline":"Missing authorization in n/a","id":"CVE-2016-10746"},"packages":[{"ecosystem":"PyPI","fixed":["2.8.1"],"introduced":["0"],"last_affected":[],"package":"Jinja2","purl":null,"source":"GHSA-hj2j-77xm-mc5v"},{"ecosystem":"PyPI","fixed":["2.8.1"],"introduced":["0"],"last_affected":[],"package":"jinja2","purl":"pkg:pypi/jinja2","source":"GHSA-hj2j-77xm-mc5v"},{"ecosystem":"PyPI","fixed":["2.8.1"],"introduced":["0"],"last_affected":[],"package":"jinja2","purl":"pkg:pypi/jinja2","source":"PYSEC-2019-220"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.7.2-3.el7_6"],"introduced":["0"],"last_affected":[],"package":"python-jinja2","purl":"pkg:rpm/redhat/python-jinja2","source":"RHSA-2019:1022"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.7.2-3.el7_6"],"introduced":["0"],"last_affected":[],"package":"python-jinja2","purl":"pkg:rpm/redhat/python-jinja2","source":"RHSA-2019:1022"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.7.2-3.el7_6"],"introduced":["0"],"last_affected":[],"package":"python-jinja2","purl":"pkg:rpm/redhat/python-jinja2","source":"RHSA-2019:1022"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.7.2-3.el7_6"],"introduced":["0"],"last_affected":[],"package":"python-jinja2","purl":"pkg:rpm/redhat/python-jinja2","source":"RHSA-2019:1022"},{"ecosystem":"Red Hat:rhel_aus:7.4::server","fixed":["0:2.7.2-3.el7_4"],"introduced":["0"],"last_affected":[],"package":"python-jinja2","purl":"pkg:rpm/redhat/python-jinja2","source":"RHSA-2019:4062"},{"ecosystem":"Red Hat:rhel_e4s:7.4::server","fixed":["0:2.7.2-3.el7_4"],"introduced":["0"],"last_affected":[],"package":"python-jinja2","purl":"pkg:rpm/redhat/python-jinja2","source":"RHSA-2019:4062"},{"ecosystem":"Red Hat:rhel_eus:7.5::computenode","fixed":["0:2.7.2-3.el7_5"],"introduced":["0"],"last_affected":[],"package":"python-jinja2","purl":"pkg:rpm/redhat/python-jinja2","source":"RHSA-2019:3964"},{"ecosystem":"Red Hat:rhel_eus:7.5::server","fixed":["0:2.7.2-3.el7_5"],"introduced":["0"],"last_affected":[],"package":"python-jinja2","purl":"pkg:rpm/redhat/python-jinja2","source":"RHSA-2019:3964"},{"ecosystem":"Red Hat:rhel_tus:7.4::server","fixed":["0:2.7.2-3.el7_4"],"introduced":["0"],"last_affected":[],"package":"python-jinja2","purl":"pkg:rpm/redhat/python-jinja2","source":"RHSA-2019:4062"},{"ecosystem":"SUSE:Linux Enterprise Module for Advanced Systems Management 12","fixed":["2.8-19.17.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Advanced%20Systems%20Management%2012","source":"SUSE-SU-2019:1323-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["2.8-19.17.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2019:1323-1"},{"ecosystem":"SUSE:Manager Client Tools 12","fixed":["2.8-19.17.1"],"introduced":["0"],"last_affected":[],"package":"python-Jinja2","purl":"pkg:rpm/suse/python-Jinja2\u0026distro=SUSE%20Manager%20Client%20Tools%2012","source":"SUSE-SU-2019:1323-1"}],"prev":{"headline":"Improper Neutralization of Input During Web Page Generation in Select2","id":"CVE-2016-10744"},"products":["n/a"],"published":"2019-04-08","related":[{"cvss_score":5.4,"headline":"Jinja has a sandbox breakout through malicious filenames","id":"CVE-2024-56201","kev_date_added":null,"published":"2024-12-23"},{"cvss_score":5.4,"headline":"Jinja has a sandbox breakout through indirect reference to format method","id":"CVE-2024-56326","kev_date_added":null,"published":"2024-12-23"},{"cvss_score":5.4,"headline":"Jinja vulnerable to Cross-Site Scripting (XSS)","id":"CVE-2024-22195","kev_date_added":null,"published":"2024-01-11"}],"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":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"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":"Attackers can execute arbitrary code by exploiting a sandbox escape in the str.format method of the Jinja templating library.","url":"https://insights.sbomify.com/CVE-2016-10745/"}