cve.bz

CVE-2019-8341 Code Injection

9.8 criticalExploitEPSS 44%

Critical (9.8). EPSS 44% estimated probability of exploitation activity in the next 30 days.

On this page
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

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
44% (unchanged from 44% a week ago; 44% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-8341 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-8341?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-8341?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-8341 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
pocoo:jinja22.10
opensuse:leap15.0
opensuse:leap42.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14jinja2no fix listedDEBIAN-CVE-2019-8341
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTSjinja2no fix listedUBUNTU-CVE-2019-8341
SUSEEnterprise Storage 4, Enterprise Storage 5, Linux Enterprise Point of Sale 12 SP2 and 5 morepython-Jinja22.8-22.8.1SUSE-SU-2019:1554-1
SUSELinux Enterprise Module for Advanced Systems Management 12, Linux Enterprise Module for Public Cloud 12, Manager Client Tools 12python-Jinja22.8-19.20.1SUSE-SU-2020:3096-1
SUSELinux Enterprise Module for Basesystem 15python-Jinja22.10.1-3.5.1SUSE-SU-2019:1156-1
SUSEOpenStack Cloud 9ardana-cassandra9.0+git.1600802664.7e480a2-3.6.2SUSE-SU-2020:3897-1
SUSEOpenStack Cloud 9ardana-mq9.0+git.1605174486.a78ddce-3.19.2SUSE-SU-2020:3897-1
SUSEOpenStack Cloud 9ardana-osconfig9.0+git.1601621747.a87e5a0-3.22.2SUSE-SU-2020:3897-1
SUSEOpenStack Cloud 9ardana-tempest9.0+git.1603378983.fc0bca9-3.19.2SUSE-SU-2020:3897-1
SUSEOpenStack Cloud 9venv-openstack-barbican7.0.1~dev24-3.21.2SUSE-SU-2020:3897-1
SUSEOpenStack Cloud 9venv-openstack-cinder13.0.10~dev20-3.24.2SUSE-SU-2020:3897-1
SUSEOpenStack Cloud 9venv-openstack-designate7.0.2~dev2-3.21.2SUSE-SU-2020:3897-1
SUSEOpenStack Cloud 9venv-openstack-glance17.0.1~dev30-3.19.2SUSE-SU-2020:3897-1
SUSEOpenStack Cloud 9venv-openstack-heat11.0.4~dev4-3.21.2SUSE-SU-2020:3897-1
33 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.0python-Jinja22.10.1-lp150.2.3.1openSUSE-SU-2019:1395-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Product Security does not believe this CVE assignment is valid. To the best of our knowledge, Jinja2 does not make any guarantees about being able to safely handle untrusted data by default without sandboxing modes enabled.

ProductPackageStateAdvisory
Red Hat Ceph Storage 2python-jinja2Not affected
Red Hat Ceph Storage 3python-jinja2Not affected
Red Hat Enterprise Linux 6python-jinja2Not affected
Red Hat Enterprise Linux 7python-jinja2Not affected
Red Hat Enterprise Linux 8python-jinja2Not affected
Red Hat OpenStack Platform 13 (Queens)python-jinja2Not affected
Red Hat OpenStack Platform 14 (Rocky)python-jinja2Not affected
Red Hat Satellite 6python-jinja2Not affected
Red Hat Storage 3python-jinja2Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-8341.

Public exploits

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON