cve.bz

CVE-2016-10745 palletsprojects jinja

8.6 highEPSS 3.5%Fix available

High (8.6) in palletsprojects jinja. EPSS 3.5% estimated probability of exploitation activity in the next 30 days. Fixed in jinja2 2.8.1.

On this page
In Pallets Jinja before 2.8.1, str.format allows a sandbox escape.

Severity

CVSS 3.0

8.6 high
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
EPSS
3.5% (unchanged from 3.5% 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.
CWE
CWE-134 Use of Externally-Controlled Format String
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-2016-10745 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2016-10745?via=ask-ai-copy and https://cve.bz/cve/CVE-2016-10745?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-2016-10745 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.8.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-hj2j-77xm-mc5vPyPIjinja2<2.8.12.8.1
PYSEC-2019-220PyPIjinja2<2.8.12.8.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14jinja22.9.4-1DEBIAN-CVE-2016-10745
Ubuntu16.04:LTSjinja22.8-1ubuntu0.1UBUNTU-CVE-2016-10745 USN-4011-1
Ubuntu18.04:LTSjinja22.10-1ubuntu0.18.04.1USN-4011-1
UbuntuPro:14.04:LTSjinja22.7.2-2ubuntu0.1~esm1UBUNTU-CVE-2016-10745 USN-4011-2
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 morepython-jinja20:2.7.2-3.el7_6RHSA-2019:1022
Red Hatrhel_aus:7.4::server, rhel_e4s:7.4::server, rhel_tus:7.4::serverpython-jinja20:2.7.2-3.el7_4RHSA-2019:4062
Red Hatrhel_eus:7.5::computenode, rhel_eus:7.5::serverpython-jinja20:2.7.2-3.el7_5RHSA-2019:3964
Red Hatrhel_software_collections:3::el6python27-python, python27-tkinter, python27-python-libs and 5 more0:2.7.16-4.el6RHSA-2019:1260
Red Hatrhel_software_collections:3::el6python27-python-jinja20:2.6-12.el6RHSA-2019:1260
Red Hatrhel_software_collections:3::el6rh-python35-python-jinja20:2.8.1-2.el6RHSA-2019:1237
Red Hatrhel_software_collections:3::el7python27-python, python27-tkinter, python27-python-libs and 5 more0:2.7.16-4.el7RHSA-2019:1260
Red Hatrhel_software_collections:3::el7python27-python-jinja20:2.6-15.el7RHSA-2019:1260
Red Hatrhel_software_collections:3::el7rh-python35-python-jinja20:2.8.1-2.el7RHSA-2019:1237
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
197 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.17.1SUSE-SU-2019:1323-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

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. 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 OpenStack Platform is not affected by this flaw. All supported versions ship python-jinja2 packages which have already been fixed.

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

* Red Hat Update Infrastructure is not affected because its packaged versions of python-jinja2 do not use the Sandbox feature, nor does it allow untrusted jinja2 templates.

* 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 Ceph Storage 2 and 3 are affected by this flaw as it contains the vulnerable code and will get security fixes for python-jinja2 from Red Hat Enterprise Linux 7 channel.

Red Hat's mitigation

If you don't want or you cannot upgrade Jinja2, you can override the `is_safe_attribute` method on the sandbox and explicitly disallow all `format` attributes on strings.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7python-jinja2-0:2.7.2-3.el7_6Fixed 2019-05-07RHSA-2019:1022
Red Hat Enterprise Linux 7.4 Advanced Update Supportpython-jinja2-0:2.7.2-3.el7_4Fixed 2019-12-03RHSA-2019:4062
Red Hat Enterprise Linux 7.4 Telco Extended Update Supportpython-jinja2-0:2.7.2-3.el7_4Fixed 2019-12-03RHSA-2019:4062
Red Hat Enterprise Linux 7.4 Update Services for SAP Solutionspython-jinja2-0:2.7.2-3.el7_4Fixed 2019-12-03RHSA-2019:4062
Red Hat Enterprise Linux 7.5 Extended Update Supportpython-jinja2-0:2.7.2-3.el7_5Fixed 2019-11-26RHSA-2019:3964
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 Ceph Storage 2python-jinja2Will not fix
Red Hat Ceph Storage 3python-jinja2Will not fix
Red Hat Enterprise Linux 6python-jinja2Will not fix
Red Hat Enterprise Linux 8python27:2.7/python-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 OpenStack Platform 15 (Stein)python-jinja2Not affected
Red Hat Software Collectionsrh-python36-python-jinja2Not affected
Red Hat Storage 3python-jinja2Affected
368 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-2016-10745.

Attack patterns (CAPEC)

  • CAPEC-67 String Format Overflow in syslog() Likelihood: High · Severity: Very High
  • CAPEC-135 Format String 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