Public exploit available
Public proof-of-concept or exploit code exists (ExploitDB / Metasploit / Nuclei).

CVE-2019-8341Code Injection in Jinja2

Severity
9.8CRITICALNVD
EPSS
36.6%
top 2.86%
CISA KEV
Not in KEV
Exploit
PoC available
Public exploit / PoC exists
Affected products
Timeline
PublishedFeb 15
Latest updateMay 13

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 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9

Affected Packages2 packages

NVDpocoo/jinja22.10
NVDopensuse/leap15.0, 42.3+1

🔴Vulnerability Details

3
GHSA
GHSA-f6pv-j8mr-w6rr: ** DISPUTED ** An issue was discovered in Jinja2 22022-05-13
OSV
CVE-2019-8341: An issue was discovered in Jinja2 22019-02-15
CVEList
CVE-2019-8341: An issue was discovered in Jinja2 22019-02-15

💥Exploits & PoCs

1
Exploit-DB
Jinja2 2.10 - 'from_string' Server Side Template Injection2019-02-15

📋Vendor Advisories

2
Red Hat
python-jinja2: command injection in function from_string2019-02-14
Debian
CVE-2019-8341: jinja2 - An issue was discovered in Jinja2 2.10. The from_string function is prone to Ser...2019

💬Community

3
Bugzilla
CVE-2019-8341 python-jinja2: command injection in function from_string [fedora-all]2019-02-15
Bugzilla
CVE-2019-8341 python-jinja2: command injection in function from_string [epel-all]2019-02-15
Bugzilla
CVE-2019-8341 python-jinja2: command injection in function from_string2019-02-15
CVE-2019-8341 — Code Injection in Pocoo Jinja2 | cvebase