Back
CVE-2019-8341
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 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
Published: Feb 15, 2019
Modified: Jun 17, 2026
CWE-94
CVSS Metrics
CVSSv3
Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
NONE
Scope:
UNCHANGED
Confidentiality Impact:
HIGH
Integrity Impact:
HIGH
Availability Impact:
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected Products (3)
| Vendor | Product | Version |
|---|---|---|
| pocoo | jinja2 | 2.10 |
| opensuse | leap | 15.0 |
| opensuse | leap | 42.3 |
GitHub Security Advisory GHSA-f6pv-j8mr-w6rr
** DISPUTED ** An issue was discovered in Jinja2 2.10. The from_string function is prone to...
References (12)
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00030.html Mailing List, Third Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00064.html Mailing List, Third Party 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
- https://github.com/JameelNabbo/Jinja2-Code-execution Broken Link
- https://www.exploit-db.com/exploits/46386/ Exploit, Third Party Advisory, VDB Entry
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00030.html Mailing List, Third Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00064.html Mailing List, Third Party 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
- https://github.com/JameelNabbo/Jinja2-Code-execution Broken Link
- https://www.exploit-db.com/exploits/46386/ Exploit, Third Party Advisory, VDB Entry
Risk Scores
CVSS Score
9.8 / 10
EPSS Score
44.78%
Top 1% most likely to be exploited
Threat Score
52.6 / 100
Data Sources
NVD
EPSS
GitHub