{"id":"CVE-2019-8341","url":"https://www.cyber-defence.io/tools/cve/CVE-2019-8341","generatedAt":"2026-10-27T23:36:43.742Z","title":"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.","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","published":"2019-02-15T07:29:00.000Z","lastModified":"2026-06-17T02:41:52.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-94"],"affected":["pocoo/jinja2","opensuse/leap"],"epss":{"score":0.43868,"percentile":0.98739,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":1,"verified":false,"firstPublished":"2019-02-15","source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[{"edbId":46386,"kind":"exploit","title":"Jinja2 2.10 - 'from_string' Server Side Template Injection","url":"https://www.exploit-db.com/exploits/46386","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/python/webapps/46386.py","file":"exploits/python/webapps/46386.py","published":"2019-02-15","added":"2019-02-15","updated":"2019-02-15","author":"JameelNabbo","type":"webapps","platform":"python","port":null,"verified":false,"codes":["CVE-2019-8341"],"tags":null,"aliases":null,"applicationUrl":"http://www.exploit-db.comJinja2-2.10.tar.gz","screenshotUrl":null,"referenceUrl":null}]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 43.9%, higher than 99% of all known CVEs. Patch or mitigate before the next change window."},"changes":[],"references":[{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00030.html","tags":["Mailing List","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00064.html","tags":["Mailing List","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1677653","tags":["Issue Tracking","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1125815","tags":["Issue Tracking","Third Party Advisory"],"source":"cve@mitre.org"},{"url":"https://github.com/JameelNabbo/Jinja2-Code-execution","tags":["Broken Link"],"source":"cve@mitre.org"},{"url":"https://www.exploit-db.com/exploits/46386/","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"cve@mitre.org"},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00030.html","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00064.html","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1677653","tags":["Issue Tracking","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1125815","tags":["Issue Tracking","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/JameelNabbo/Jinja2-Code-execution","tags":["Broken Link"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.exploit-db.com/exploits/46386/","tags":["Exploit","Third Party Advisory","VDB Entry"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-8341","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}