{"id":"CVE-2019-8341","published":"2019-02-15T07:00:00Z","modified":"2024-08-04T21:17:30Z","title":"An issue was discovered in Jinja2 2.10","vendor":null,"product":null,"tier":"tail","description":{"text":"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","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.43868,"percentile":0.98778,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/JameelNabbo/Jinja2-Code-execution","tags":["x_refsource_MISC"]},{"url":"https://www.exploit-db.com/exploits/46386/","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00030.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00064.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1677653","tags":["x_refsource_MISC"]},{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1125815","tags":["x_refsource_CONFIRM"]}],"priority":{"score":24.8,"factors":[{"name":"EPSS percentile","points":19.76},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2019-02-15"},"pocGithub":{"count":1,"skipped":0,"earliest":"2021-12-24","earliestUrl":"https://github.com/adindrabkin/llama_facts","repos":[{"name":"adindrabkin/llama_facts","url":"https://github.com/adindrabkin/llama_facts","stars":0,"created":"2021-12-24"}]},"first":{"date":"2019-02-15","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/46386"},"provenance":"source"},"summary":{"text":"The flaw lies in Jinja2 2.10, where the from_string function takes its \"source\" parameter as a template, renders it, and returns the result, making it prone to Server Side Template Injection. An attacker can exploit it by supplying injection commands within a URI, though the maintainer and several third parties dispute that this is a valid vulnerability, arguing that untrusted templates should not be used without sandboxing.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:43:53Z"},"euvd":{"id":"EUVD-2019-17731","exploited":false,"provenance":"source"},"exploits":[{"id":46386,"url":"https://www.exploit-db.com/exploits/46386","title":"Jinja2 2.10 - 'from_string' Server Side Template Injection","date":"2019-02-15","verified":false,"provenance":"source"}],"exploitRefs":["https://www.exploit-db.com/exploits/46386/"]}