{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2019-8341 in the wild and no public exploit code.","fix":"Change a configuration setting.","what":"CVE-2019-8341 is a critical code injection vulnerability in Opensuse Leap, published on 15 Feb 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-2019-8341 and fix it if it is affected.\n\nWhat it is: CVE-2019-8341 is a critical code injection vulnerability in Opensuse Leap, published on 15 Feb 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-2019-8341 in the wild and no public exploit code.\n\nAffected product: Opensuse Leap. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2019-8341/ (Markdown: https://insights.sbomify.com/CVE-2019-8341/index.md)","id":"CVE-2019-8341","markdown":"https://insights.sbomify.com/CVE-2019-8341/index.md","name":"CVE-2019-8341","record":{"aliases":["DEBIAN-CVE-2019-8341","GHSA-f6pv-j8mr-w6rr","UBUNTU-CVE-2019-8341"],"analysis":{"component_type":"library","fix_type":"configuration_change","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Python template engine","requires_auth":"none","summary":"Attacker can execute arbitrary code via Server Side Template Injection if untrusted input is rendered without sandboxing.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"leap","vendor":"opensuse"},{"product":"jinja2","vendor":"pocoo"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"An issue was discovered in Jinja2 2.10. The from_string function is prone to Server Side Template Injection (SSTI) where it takes the \"source\" parameter as a template object, renders it, and then returns it. The attacker can exploit it with {{INJECTION COMMANDS}} in a URI. NOTE: The maintainer and multiple third parties believe that this vulnerability isn't valid because users shouldn't use untrusted templates without sandboxing","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2019-02-15","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2019-02-15","kind":"exploitdb","ref":"46386","stars":null,"title":"Jinja2 2.10 - 'from_string' Server Side Template Injection"},{"date":"2021-12-24T04:08:44Z","kind":"github_poc","ref":"https://github.com/adindrabkin/llama_facts","stars":0,"title":"Web application vulnerable to Python3 Flask SSTI (CVE-2019-8341)"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Code injection in n/a","id":"CVE-2019-8341","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"opensuse:leap","products":["opensuse:leap"],"type":"code_injection","year":"2019"},"n_packages":0,"n_references":6,"next":{"headline":"Privilege escalation in n/a","id":"CVE-2019-8342"},"packages":[],"prev":{"headline":"Security feature bypass in n/a","id":"CVE-2019-8339"},"products":["n/a"],"published":"2019-02-15","related":[{"cvss_score":5.3,"headline":"Oracle Java SE Integrity Check","id":"CVE-2015-4902","kev_date_added":"2022-03-03","published":"2015-10-21"},{"cvss_score":9.9,"headline":"package builds could use directory traversal to write outside of target area","id":"CVE-2017-14804","kev_date_added":null,"published":"2018-03-01"},{"cvss_score":9.8,"headline":"Teeworlds before 0.7.4 has an integer overflow when computing a tilemap size.","id":"CVE-2019-20787","kev_date_added":null,"published":"2020-04-22"},{"cvss_score":9.8,"headline":"Other in n/a","id":"CVE-2019-6438","kev_date_added":null,"published":"2019-01-31"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2017-18215","kev_date_added":null,"published":"2018-03-05"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2017-6542","kev_date_added":null,"published":"2017-03-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Attacker can execute arbitrary code via Server Side Template Injection if untrusted input is rendered without sandboxing.","url":"https://insights.sbomify.com/CVE-2019-8341/"}