CVE-2019-8341
Pocoo Jinja2 vulnerability
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
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Jinja2, Leap. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Pocoo Jinja2 runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- lists.opensuse.org/opensuse-security-announce/2019-05/msg00030.html · Third Party Advisory
- lists.opensuse.org/opensuse-security-announce/2019-06/msg00064.html · Third Party Advisory
- bugzilla.redhat.com/show_bug.cgi?id=1677653 · Third Party Advisory
- bugzilla.suse.com/show_bug.cgi?id=1125815 · Third Party Advisory
- www.exploit-db.com/exploits/46386/ · Exploit
- github.com/JameelNabbo/Jinja2-Code-execution
- nvd.nist.gov/vuln/detail/CVE-2019-8341
- cve.org/CVERecord?id=CVE-2019-8341
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.