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
What to do
Likely to be exploited: EPSS gives a 44% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | jinja2 | Fix pending | UBUNTU-CVE-2019-8341 | |
| Ubuntu 16.04 | jinja2 | Will not fix further discussions about this CVE says it's a invalid one. A reject was already sent to MITRE. | UBUNTU-CVE-2019-8341 | |
| Ubuntu 14.04 | jinja2 | Fix pending | UBUNTU-CVE-2019-8341 | |
| Debian 14 | jinja2 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2019-8341 | |
| Debian 13 | jinja2 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2019-8341 | |
| Debian 12 | jinja2 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2019-8341 | |
| Red Hat Enterprise Linux 8 | python-jinja2 | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-jinja2 | Not affected | ||
| Red Hat Enterprise Linux 7 | python-jinja2 | Not affected | ||
| Red Hat Enterprise Linux 6 | python-jinja2 | Not affected |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00030.html (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00064.html (vendor-advisory)
References
- 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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.