RCE in Pocoo Jinja2
CVE-2019-8341
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
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.439 (98.7th percentile), scored .
Moderate probability of exploitation in the next 30 days — watch for active exploitation reports. 99th percentile — 98.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.448 · newest: 0.439 · change: -0.009
Affected products
- Pocoo Jinja2 — versions 2.10
- openSUSE Leap — versions 15.0, 42.3
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/JameelNabbo/Jinja2-Code-execution (Broken Link)
- www.exploit-db.com/exploits/46386/ (Exploit, VDB Entry, Third Party Advisory, exploit)
- lists.opensuse.org/opensuse-security-announce/2019-05/msg00030.html (vendor-advisory, Mailing List, Third Party Advisory)
- lists.opensuse.org/opensuse-security-announce/2019-06/msg00064.html (vendor-advisory, Mailing List, Third Party Advisory)
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- bugzilla.suse.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
Frequently asked questions
- What is CVE-2019-8341?
- CVE-2019-8341 is a critical-severity vulnerability in Pocoo Jinja2, classified under Code Injection. CVSS score: 9.8/10. Published 2019-02-15.
- How severe is CVE-2019-8341?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2019-8341 known to be exploited?
- 6 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.