CVE-2019-8341
publishedpython-jinja2: command injection in function from_string
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| SUSE / openSUSE | SLE-12 | python-Jinja2noarch | Advisory build | 2.8-19.20.1 | SUSE-SU-2020:3096-1 |
| SUSE / openSUSE | SLE-12 | python3-Jinja2noarch | Advisory build | 2.8-19.20.1 | SUSE-SU-2020:3096-1 |
| SUSE / openSUSE | SLE-12-SP2 | python-Jinja2noarch | Advisory build | 2.8-22.8.1 | SUSE-SU-2019:1554-1 |
| SUSE / openSUSE | SLE-12-SP2 | python3-Jinja2noarch | Advisory build | 2.8-22.8.1 | SUSE-SU-2019:1554-1 |
| SUSE / openSUSE | SLE-12-SP3 | python-Jinja2noarch | Advisory build | 2.8-19.20.1 | SUSE-SU-2020:3096-1 |
| SUSE / openSUSE | SLE-12-SP3 | python3-Jinja2noarch | Advisory build | 2.8-19.20.1 | SUSE-SU-2020:3096-1 |
| SUSE / openSUSE | SLE-12-SP4 | python-Jinja2noarch | Advisory build | 2.8-19.20.1 | SUSE-SU-2020:3096-1 |
Show 9 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP4 | python3-Jinja2noarch | Advisory build | 2.8-19.20.1 | SUSE-SU-2020:3096-1 |
| SUSE / openSUSE | SLE-12-SP5 | python-Jinja2noarch | Advisory build | 2.8-19.20.1 | SUSE-SU-2020:3096-1 |
| SUSE / openSUSE | SLE-12-SP5 | python3-Jinja2noarch | Advisory build | 2.8-19.20.1 | SUSE-SU-2020:3096-1 |
| SUSE / openSUSE | SLE-15 | python2-Jinja2noarch | Advisory build | 2.10.1-3.5.1 | SUSE-SU-2019:1156-1 |
| SUSE / openSUSE | SLE-15 | python3-Jinja2noarch | Advisory build | 2.10.1-3.5.1 | SUSE-SU-2019:1156-1 |
| SUSE / openSUSE | openSUSE-Leap-15.0 | python-Jinja2-emacsnoarch | Advisory build | 2.10.1-lp150.2.3.1 | OPENSUSE-SU-2019:1395-1 |
| SUSE / openSUSE | openSUSE-Leap-15.0 | python-Jinja2-vimnoarch | Advisory build | 2.10.1-lp150.2.3.1 | OPENSUSE-SU-2019:1395-1 |
| SUSE / openSUSE | openSUSE-Leap-15.0 | python2-Jinja2noarch | Advisory build | 2.10.1-lp150.2.3.1 | OPENSUSE-SU-2019:1395-1 |
| SUSE / openSUSE | openSUSE-Leap-15.0 | python3-Jinja2noarch | Advisory build | 2.10.1-lp150.2.3.1 | OPENSUSE-SU-2019:1395-1 |
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
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
6- openSUSE-SU-2019:1395 http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00030.html
- openSUSE-SU-2019:1614 http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00064.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1677653
- https://bugzilla.suse.com/show_bug.cgi?id=1125815
- https://github.com/JameelNabbo/Jinja2-Code-execution
- 46386 https://www.exploit-db.com/exploits/46386/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 52e65c27cadab399c8d8100589e52ff5ae3b8ffdd55bd186b657de81bc5431f8
- Ingested
- 23 Sep 2026, 07:47:40 UTC
- Source record
- Official CVE record