Arbitrary Code Injection Affecting jinja2 package, versions *
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-DEBIANUNSTABLE-JINJA2-337443
- published 15 Feb 2019
- disclosed 15 Feb 2019
Introduced: 15 Feb 2019
CVE-2019-8341 Open this link in a new tabHow to fix?
There is no fixed version for Debian:unstable jinja2.
NVD Description
Note: Versions mentioned in the description apply only to the upstream jinja2 package and not the jinja2 package as distributed by Debian.
See How to fix? for Debian:unstable relevant fixed versions and status.
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
References
- https://security-tracker.debian.org/tracker/CVE-2019-8341
- https://bugzilla.suse.com/show_bug.cgi?id=1125815
- https://www.exploit-db.com/exploits/46386/
- https://github.com/JameelNabbo/Jinja2-Code-execution
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00030.html
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00064.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1677653
- https://www.exploit-db.com/exploits/46386