Vulnerability 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
CVSS Score
CRITICAL
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Pocoo | Jinja2 | 2.10 |
| Opensuse | Leap | 15.0 |
Related Weaknesses (CWE)
References
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00030.htmlMailing ListThird Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00064.htmlMailing ListThird Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1677653Issue TrackingThird Party Advisory
- https://bugzilla.suse.com/show_bug.cgi?id=1125815Issue TrackingThird Party Advisory
- https://github.com/JameelNabbo/Jinja2-Code-executionBroken Link
- https://www.exploit-db.com/exploits/46386/ExploitThird Party AdvisoryVDB Entry
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00030.htmlMailing ListThird Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00064.htmlMailing ListThird Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1677653Issue TrackingThird Party Advisory
- https://bugzilla.suse.com/show_bug.cgi?id=1125815Issue TrackingThird Party Advisory
- https://github.com/JameelNabbo/Jinja2-Code-executionBroken Link
- https://www.exploit-db.com/exploits/46386/ExploitThird Party AdvisoryVDB Entry
FAQ
What is CVE-2019-8341?
CVE-2019-8341 is a vulnerability with a CVSS score of 9.8 (CRITICAL). 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 retu...
How severe is CVE-2019-8341?
CVE-2019-8341 has been rated CRITICAL with a CVSS base score of 9.8/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2019-8341?
Check the references section above for vendor advisories and patch information. Affected products include: Pocoo Jinja2, Opensuse Leap.