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
Metrics
CVSS 3.1 9.8/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
References
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00030.htmlMailing List, Third Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00064.htmlMailing List, Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1677653Issue Tracking, Third Party Advisory
- https://bugzilla.suse.com/show_bug.cgi?id=1125815Issue Tracking, Third Party Advisory
- https://github.com/JameelNabbo/Jinja2-Code-executionBroken Link
- https://www.exploit-db.com/exploits/46386/Exploit, Third Party Advisory, VDB Entry
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00030.htmlMailing List, Third Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00064.htmlMailing List, Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1677653Issue Tracking, Third Party Advisory
- https://bugzilla.suse.com/show_bug.cgi?id=1125815Issue Tracking, Third Party Advisory
- https://github.com/JameelNabbo/Jinja2-Code-executionBroken Link
- https://www.exploit-db.com/exploits/46386/Exploit, Third Party Advisory, VDB Entry
Timeline
- Published
- Feb 15, 2019
- Last modified
- Jun 17, 2026
- NVD status
- Modified