cve.bz

CVE-2019-10906

8.6 highEPSS 3.6%Fix available

High (8.6). EPSS 3.6% estimated probability of exploitation activity in the next 30 days. Fixed in jinja2 2.10.1.

On this page
In Pallets Jinja before 2.10.1, str.format_map allows a sandbox escape.

Severity

CVSS 3.1

8.6 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
EPSS
3.6% (unchanged from 3.6% a week ago; 3.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 90th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
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-10906 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-10906?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-10906?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-10906 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
palletsprojects:jinjabefore 2.10.1
fedoraproject:fedora28
fedoraproject:fedora29
fedoraproject:fedora30
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux18.10
canonical:ubuntu_linux19.04
redhat:software_collections1.0
opensuse:leap15.0
opensuse:leap42.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-462w-v97r-4m45PyPIjinja2<2.10.12.10.1
PYSEC-2019-217PyPIjinja2<2.10.12.10.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14jinja22.10-2DEBIAN-CVE-2019-10906
Ubuntu16.04:LTSjinja22.8-1ubuntu0.1UBUNTU-CVE-2019-10906 USN-4011-1
Ubuntu18.04:LTSjinja22.10-1ubuntu0.18.04.1UBUNTU-CVE-2019-10906 USN-4011-1
UbuntuPro:14.04:LTSjinja22.7.2-2ubuntu0.1~esm1UBUNTU-CVE-2019-10906 USN-4011-2
Red Hatenterprise_linux:8::appstreampython-jinja2, python3-jinja20:2.10.1-2.el8_0RHSA-2019:1152
Red Hatrhel_software_collections:3::el6rh-python35-python-jinja20:2.8.1-2.el6RHSA-2019:1237
Red Hatrhel_software_collections:3::el6rh-python36-python-jinja20:2.9.6-3.el6RHSA-2019:1329
Red Hatrhel_software_collections:3::el7rh-python35-python-jinja20:2.8.1-2.el7RHSA-2019:1237
Red Hatrhel_software_collections:3::el7rh-python36-python-jinja20:2.9.6-3.el7RHSA-2019:1329
Red Hatsatellite:6.6::el7createrepo_c, createrepo_c-libs, createrepo_c-debuginfo and 1 more0:0.7.4-1.el7satRHSA-2019:3172
Red Hatsatellite:6.6::el7foreman, foreman-cli, foreman-ec2 and 10 more0:1.22.0.32-1.el7satRHSA-2019:3172
Red Hatsatellite:6.6::el7pcp-mmvstatsd0:0.4-2.el7satRHSA-2019:3172
Red Hatsatellite:6.6::el7qpid-cpp, qpid-qmf, qpid-tools and 6 more0:1.36.0-28.el7amqRHSA-2019:3172
Red Hatsatellite:6.6::el7rhel8-kickstart-setup0:0.0.2-1.el7satRHSA-2019:3172
Red Hatsatellite:6.6::el7rubygem-bundler_ext, tfm-ror52-rubygem-globalid0:0.4.1-3.el7satRHSA-2019:3172
Red Hatsatellite:6.6::el7rubygem-faraday, tfm-rubygem-faraday0:0.15.4-1.el7satRHSA-2019:3172
193 more for Red Hat in the JSON and on Red Hat's page.
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
openSUSETumbleweedpython-Jinja23.0.1-3.2openSUSE-SU-2024:11208-1
openSUSETumbleweedpython-Jinja23.1.4-1.1openSUSE-SU-2024:13930-1
openSUSETumbleweedpython-Jinja23.1.6-2.4openSUSE-SU-2026:11992-1
Rocky Linux8python-jinja20:2.10.1-2.el8_0RLSA-2019:1152
Azure Linux3nodejs20.14.0-1AZL-41949

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Virtualization Management Appliance includes python-jinja2 as a dependency of ovirt-engine-backend, which only uses it with controlled format strings that are not exploitable.

Red Hat Satellite 6 will receive fixes through the underlying Red Hat Enterprise Linux, so it won't issue updates to its own affected package.

This issue does not affect versions of python-jinja2 as shipped with:

* Red Hat Enterprise Linux 6, and 7 as python2 does not support str.format_map.

* Red Hat Update Infrastructure as it does not use the Sandbox feature, nor does it allow untrusted jinja2 templates.

* Red Hat Ceph Storage 2, 3 and Red Hat Gluster Storage 3 as python2 does not support str.format_map.

* Red Hat OpenStack Platform 13 or 14 as python2 does not support str.format_map.

Red Hat's mitigation

If you cannot upgrade python-Jinja2, you can override the `is_safe_attribute` method on the sandbox and explicitly disallow the `format_map` method on string objects.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8python-jinja2-0:2.10.1-2.el8_0Fixed 2019-05-13RHSA-2019:1152
Red Hat Satellite 6.6 for RHEL 7ansiblerole-foreman_scap_client-0:0.0.3-1.el7satFixed 2019-10-22RHSA-2019:3172
Red Hat Satellite 6.6 for RHEL 7ansiblerole-insights-client-0:1.6-2.el7satFixed 2019-10-22RHSA-2019:3172
Red Hat Satellite 6.6 for RHEL 7ansible-runner-0:1.3.4-2.el7arFixed 2019-10-22RHSA-2019:3172
Red Hat Satellite 6.6 for RHEL 7candlepin-0:2.6.9-1.el7satFixed 2019-10-22RHSA-2019:3172
Red Hat Satellite 6.6 for RHEL 7createrepo_c-0:0.7.4-1.el7satFixed 2019-10-22RHSA-2019:3172
Red Hat Satellite 6.6 for RHEL 7foreman-0:1.22.0.32-1.el7satFixed 2019-10-22RHSA-2019:3172
Red Hat Satellite 6.6 for RHEL 7foreman-bootloaders-redhat-0:201901011200-1.el7satFixed 2019-10-22RHSA-2019:3172
Red Hat Satellite 6.6 for RHEL 7foreman-discovery-image-0:3.5.4-6Fixed 2019-10-22RHSA-2019:3172
Red Hat Satellite 6.6 for RHEL 7foreman-installer-1:1.22.0.16-1.el7satFixed 2019-10-22RHSA-2019:3172
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 8python27:2.7/python-jinja2Not affected
Red Hat OpenStack Platform 13 (Queens)python-jinja2Not affected
Red Hat OpenStack Platform 14 (Rocky)python-jinja2Not affected
Red Hat OpenStack Platform 15 (Stein)python-jinja2Not affected
Red Hat Software Collectionspython27-python-jinja2Not affected
Red Hat Storage 3python-jinja2Not affected
359 more in the JSON and on Red Hat's page.

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-10906.

References

Check your stackJSON