CVEfocus › CVE database › CVE-2019-8341

CVE-2019-8341

CVSS 9.8 CriticalEPSS 43.9% (higher than 99% of CVEs)Published 2019-02-15Updated 2024-08-04Assigner: mitre

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

2Fix pending
4Will not fix
4Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04jinja2Fix pendingUBUNTU-CVE-2019-8341
Ubuntu 16.04jinja2Will 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.04jinja2Fix pendingUBUNTU-CVE-2019-8341
Debian 14jinja2Will 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 13jinja2Will 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 12jinja2Will 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 8python-jinja2Not affected
Red Hat Enterprise Linux 8python3-jinja2Not affected
Red Hat Enterprise Linux 7python-jinja2Not affected
Red Hat Enterprise Linux 6python-jinja2Not 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:

References

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.