CVE-2019-8341
CVE-2019-8341
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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 9.8 · Critical · EPSS 43.9% · Public exploit
- Published
- Updated
Stack: system
Affected products and versions
n/a
- Versions
- n/a: Affected
No fix published
jinja2 Debian:12
- Versions
- 3.1.2-1
- 3.1.2-1+deb12u1
- 3.1.2-1+deb12u2
- 3.1.2-1+deb12u3
- 3.1.3-1
- 3.1.3-1.1
- 3.1.3-2
- 3.1.5-1
- 3.1.5-2
- 3.1.6-1
- 3.1.6-2
- 3.1.6-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
jinja2 Debian:13
- Versions
- 3.1.6-1
- 3.1.6-2
- 3.1.6-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
jinja2 Debian:14
- Versions
- 3.1.6-1
- 3.1.6-2
- 3.1.6-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
jinja2 Ubuntu:Pro:14.04:LTS
- Versions
- 2.7-3
- 2.7.1-1
- 2.7.2-1
- 2.7.2-2
- 2.7.2-2ubuntu0.1~esm1
- 2.7.2-2ubuntu0.1~esm2
- 2.7.2-2ubuntu0.1~esm3
- 2.7.2-2ubuntu0.1~esm4
- 2.7.2-2ubuntu0.1~esm6
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
jinja2 Ubuntu:Pro:16.04:LTS
- Versions
- 2.8-1
- 2.8-1ubuntu0.1
- 2.8-1ubuntu0.1+esm1
- 2.8-1ubuntu0.1+esm2
- 2.8-1ubuntu0.1+esm3
- 2.8-1ubuntu0.1+esm5
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
jinja2 Ubuntu:Pro:18.04:LTS
- Versions
- 2.9.6-1
- 2.10-1
- 2.10-1ubuntu0.18.04.1
- 2.10-1ubuntu0.18.04.1+esm1
- 2.10-1ubuntu0.18.04.1+esm2
- 2.10-1ubuntu0.18.04.1+esm3
- 2.10-1ubuntu0.18.04.1+esm4
- 2.10-1ubuntu0.18.04.1+esm5
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/JameelNabbo/Jinja2-Code-execution
- https://www.exploit-db.com/exploits/46386/
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00030.html
- 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://nvd.nist.gov/vuln/detail/CVE-2019-8341