CVE-2019-8341 in the critical feed json
An issue was discovered in Jinja2 2.10.
published 2019-02-15 7 y ago modified 2026-06-17 4 mo ago also EUVD-2019-17731
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 43.9%
- EPSS 43.9% chance of exploitation in 30 days, percentile 98%
- public exploits
- 1
- Exploit-DB
Summary
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
Patch / fix
- spark OpenStack Cloud Crowbar 9, OpenStack Cloud 9 2.2.3-5.3.3
- grafana OpenStack Cloud Crowbar 9, OpenStack Cloud 9 6.7.4-3.20.1
- influxdb OpenStack Cloud Crowbar 9, OpenStack Cloud 9 1.3.8-4.3.3
- ardana-mq OpenStack Cloud 9 9.0+git.1605174486.a78ddce-3.19.2
- crowbar-core OpenStack Cloud Crowbar 9 6.0+git.1606314264.bf9ada813-3.31.2
- python-Jinja2 OpenStack Cloud Crowbar 9, OpenStack Cloud 9 2.10.1-3.3.3
- python-pytest OpenStack Cloud Crowbar 9, OpenStack Cloud 9 3.7.4-3.3.3
- ardana-tempest OpenStack Cloud 9 9.0+git.1603378983.fc0bca9-3.19.2
suse advisories SUSE-SU-2020:3897-1SUSE-SU-2020:3096-1SUSE-SU-2019:1554-1SUSE-SU-2019:1156-1
- python-Jinja2 openSUSE Leap 15.0 2.10.1-lp150.2.3.1
opensuse advisories openSUSE-SU-2019:1395-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2019-8341 updated cvss 8.2
python-jinja2: command injection in function from_string
-
Red Hat Ceph Storage 2 python-jinja2 Red Hat Ceph Storage 3 python-jinja2 Red Hat Enterprise Linux 6 python-jinja2 Red Hat Enterprise Linux 7 python-jinja2 Red Hat Enterprise Linux 8 python-jinja2, python3-jinja2 Red Hat OpenStack Platform 13 (Queens) python2-jinja2not affected: vulnerable code not present
+3 more productsfewer
Red Hat OpenStack Platform 14 (Rocky) python2-jinja2 Red Hat Satellite 6 python-jinja2, python2-jinja2 Red Hat Storage 3 python-jinja2
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- First public exploit (EDB-46386)
- Published
Exploit prediction
43.87% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- EDB-46386 Jinja2 2.10 - 'from_string' Server Side Template Injection webapps, 2019-02-15
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
exploit-db.com
/exploits/46386/
exploit, third-party-advisory, vdb-entry
-
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
-
github.com
/JameelNabbo/Jinja2-Code-execution
broken-link
-
bugzilla.redhat.com
/show_bug.cgi?id=1677653
issue-tracking, third-party-advisory
-
bugzilla.suse.com
/show_bug.cgi?id=1125815
issue-tracking, third-party-advisory
Sources
- CVE List CVE-2019-8341
- NVD CVE-2019-8341
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.