CVE-2019-8341
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.
Does this matter?
EPSS puts the probability of exploitation in the next 30 days at 43.9%, higher than 99% of all known CVEs. Patch or mitigate before the next change window.
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 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 43.87% probability · 99th percentile
- Public exploits
- 1 in Exploit-DB · first 15 February 2019
- CISA KEV
- Not listed
- Weakness
- CWE-94
- Affected
- pocoo/jinja2 · opensuse/leap
- Source
- cve@mitre.org
EPSS 43.9% since 26 October 2026; no change recorded yet. The dashed line is the ten per cent mark our analysts treat as “patch before the next change window”. Points are recorded when the score first appears and whenever it moves by a percentage point or more.
Public exploits (1)
Entries in Exploit-DB that cite this CVE. Links go to the Exploit-DB page and to the file in the public repository; nothing is hosted here. A verified tick means the Exploit-DB team confirmed the exploit works against the stated version.
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
Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.