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
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Link | Tags |
---|---|
https://github.com/JameelNabbo/Jinja2-Code-execution | broken link |
https://www.exploit-db.com/exploits/46386/ | exploit vdb entry third party advisory |
http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00030.html | mailing list third party advisory vendor advisory |
http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00064.html | mailing list third party advisory vendor advisory |
https://bugzilla.redhat.com/show_bug.cgi?id=1677653 | issue tracking third party advisory |
https://bugzilla.suse.com/show_bug.cgi?id=1125815 | issue tracking third party advisory |