CVE-2016-10745 json
Jinja2 sandbox escape vulnerability
published 2019-04-08 7 y ago modified 2026-06-17 4 mo ago also GHSA-hj2j-77xm-mc5v , PYSEC-2019-220 , EUVD-2019-0069
- cvss
- 8.6
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.5%
- EPSS 3.5% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
Summary
In Pallets Jinja before 2.8.1, str.format allows a sandbox escape.
Patch / fix
- pypi jinja2 2.8.1
- palletsprojects jinja 2.8.1
- jinja2 Debian 14, Debian 13, Debian 12 2.9.4-1
debian advisories DEBIAN-CVE-2016-10745
- jinja2 Ubuntu 16.04 LTS 2.8-1ubuntu0.1
- jinja2 Ubuntu Pro 14.04 LTS 2.7.2-2ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2016-10745
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python27-python RHEL 3 SOFTWARE_COLLECTIONS 2.7.16-4.el6
- python27-python RHEL 3 SOFTWARE_COLLECTIONS 2.7.16-4.el7
- python27-python-jinja2 RHEL 3 SOFTWARE_COLLECTIONS 2.6-12.el6
- python27-python-jinja2 RHEL 3 SOFTWARE_COLLECTIONS 2.6-15.el7
- python27-tkinter RHEL 3 SOFTWARE_COLLECTIONS 2.7.16-4.el6
- python27-tkinter RHEL 3 SOFTWARE_COLLECTIONS 2.7.16-4.el7
- python27-python-libs RHEL 3 SOFTWARE_COLLECTIONS 2.7.16-4.el6
- python27-python-libs RHEL 3 SOFTWARE_COLLECTIONS 2.7.16-4.el7
red hat advisories RHSA-2019:1260RHSA-2019:3172RHSA-2019:1237RHSA-2019:4062RHSA-2019:3964RHSA-2019:1022
- spark OpenStack Cloud Crowbar 9, OpenStack Cloud 9 2.2.3-5.3.3
- grafana OpenStack Cloud Crowbar 9, OpenStack Cloud 9 6.7.4-3.20.1
- influxdb OpenStack Cloud Crowbar 9, OpenStack Cloud 9 1.3.8-4.3.3
- ardana-mq OpenStack Cloud 9 9.0+git.1605174486.a78ddce-3.19.2
- crowbar-core OpenStack Cloud Crowbar 9 6.0+git.1606314264.bf9ada813-3.31.2
- python-Jinja2 OpenStack Cloud Crowbar 9, OpenStack Cloud 9 2.10.1-3.3.3
- python-pytest OpenStack Cloud Crowbar 9, OpenStack Cloud 9 3.7.4-3.3.3
- ardana-tempest OpenStack Cloud 9 9.0+git.1603378983.fc0bca9-3.19.2
suse advisories SUSE-SU-2020:3897-1SUSE-SU-2019:1554-1SUSE-SU-2019:1323-1SUSE-SU-2019:1156-1
- python-Jinja2 openSUSE Tumbleweed 3.1.6-2.4
- python-Jinja2 openSUSE Tumbleweed 3.0.1-3.2
- python-Jinja2 openSUSE Tumbleweed 3.1.4-1.1
- python-Jinja2 openSUSE Leap 15.0 2.10.1-lp150.2.3.1
opensuse advisories openSUSE-SU-2026:11992-1openSUSE-SU-2024:11208-1openSUSE-SU-2024:13930-1openSUSE-SU-2019:1395-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2016-10745 updated cvss 9.0
python-jinja2: Sandbox escape due to information disclosure via str.format
-
Red Hat Ceph Storage 2 python-jinja2 Red Hat Ceph Storage 3 python-jinja2 Red Hat Enterprise Linux 6 python-jinja2affected: workaround, no fix planned “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.”
-
Red Hat Storage 3 python-jinja2affected: workaround, no fix available “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.”
-
Red Hat Enterprise Linux Client Optional (v. 7) python-jinja2 2.7.2-3.el7_6 Red Hat Enterprise Linux ComputeNode Optional (v. 7) python-jinja2 2.7.2-3.el7_6fixed: vendor fix “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.” RHSA-2019:1022
-
Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.5) python-jinja2 2.7.2-3.el7_5fixed: vendor fix “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.” RHSA-2019:3964
-
Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) python-jinja2 2.7.2-3.el7_6 Red Hat Enterprise Linux Server (v. 7) python-jinja2 2.7.2-3.el7_6fixed: vendor fix “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.” RHSA-2019:1022
-
Red Hat Enterprise Linux Server AUS (v. 7.4) python-jinja2 2.7.2-3.el7_4 Red Hat Enterprise Linux Server E4S (v. 7.4) python-jinja2 2.7.2-3.el7_4fixed: vendor fix “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.” RHSA-2019:4062
-
Red Hat Enterprise Linux Server EUS (v. 7.5) python-jinja2 2.7.2-3.el7_5fixed: vendor fix “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.” RHSA-2019:3964
-
Red Hat Enterprise Linux Server TUS (v. 7.4) python-jinja2 2.7.2-3.el7_4fixed: vendor fix “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.” RHSA-2019:4062
show 4 moreshow fewer
-
Red Hat Enterprise Linux Workstation (v. 7) python-jinja2 2.7.2-3.el7_6fixed: vendor fix “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.” RHSA-2019:1022
-
Red Hat Satellite 6.6 tfm 5.0-7.el7sat, kobo 0.5.1-1.el7sat, gofer 2.12.5-5.el7sat, pulp 2.19.1.1-1.el7sat, tfm-ror52 1.0-4.el7sat, future 0.16.0-11.el7sat, +448 more Red Hat Satellite Capsule 6.6 tfm 5.0-7.el7sat, kobo 0.5.1-1.el7sat, gofer 2.12.5-5.el7sat, pulp 2.19.1.1-1.el7sat, tfm-ror52 1.0-4.el7sat, future 0.16.0-11.el7sat, +239 morefixed: vendor fix “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.” RHSA-2019:3172
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) python27-python 2.7.16-4.el6, python27-tkinter 2.7.16-4.el6, python27-python-jinja2 2.6-12.el6, python27-python-libs 2.7.16-4.el6, python27-python-test 2.7.16-4.el6, python27-python-tools 2.7.16-4.el6, +1 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) python27-python 2.7.16-4.el7, python27-tkinter 2.7.16-4.el7, python27-python-jinja2 2.6-15.el7, python27-python-libs 2.7.16-4.el7, python27-python-test 2.7.16-4.el7, python27-python-tools 2.7.16-4.el7, +1 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) python27-python 2.7.16-4.el7, python27-tkinter 2.7.16-4.el7, python27-python-jinja2 2.6-15.el7, python27-python-libs 2.7.16-4.el7, python27-python-test 2.7.16-4.el7, python27-python-tools 2.7.16-4.el7, +1 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) python27-python 2.7.16-4.el7, python27-tkinter 2.7.16-4.el7, python27-python-jinja2 2.6-15.el7, python27-python-libs 2.7.16-4.el7, python27-python-test 2.7.16-4.el7, python27-python-tools 2.7.16-4.el7, +1 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) python27-python 2.7.16-4.el7, python27-tkinter 2.7.16-4.el7, python27-python-jinja2 2.6-15.el7, python27-python-libs 2.7.16-4.el7, python27-python-test 2.7.16-4.el7, python27-python-tools 2.7.16-4.el7, +1 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) python27-python 2.7.16-4.el6, python27-tkinter 2.7.16-4.el6, python27-python-jinja2 2.6-12.el6, python27-python-libs 2.7.16-4.el6, python27-python-test 2.7.16-4.el6, python27-python-tools 2.7.16-4.el6, +1 morefixed: vendor fix “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.” RHSA-2019:1260
+1 more productsfewer
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) python27-python 2.7.16-4.el7, python27-tkinter 2.7.16-4.el7, python27-python-jinja2 2.6-15.el7, python27-python-libs 2.7.16-4.el7, python27-python-test 2.7.16-4.el7, python27-python-tools 2.7.16-4.el7, +1 more -
Red Hat Enterprise Linux 8 python-jinja2, python3-jinja2 Red Hat OpenStack Platform 13 (Queens) python2-jinja2 Red Hat OpenStack Platform 14 (Rocky) python2-jinja2 Red Hat OpenStack Platform 15 (Stein) python2-jinja2, python3-jinja2 Red Hat Software Collections rh-python36-python-jinja2 Red Hat Update Infrastructure 3 for Cloud Providers python-jinja2not affected: vulnerable code not present
+1 more productsfewer
Red Hat Virtualization 4 rhvm-appliance
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.52% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 8.6 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| GitHub | 3.0 | 8.6 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | jinja2 | <2.8.1 |
2.8.1 |
Classification
- Weakness
-
- CWE-134 Use of Externally-Controlled Format String
References
-
github.com
/pallets/jinja/commit/9b53045c34e61013dc8f09b7e52a555fa16bed16
web, patch, third-party-advisory
-
access.redhat.com
/errata/RHSA-2019:1022
vendor-advisory, web, advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-05/msg00030.html
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2019:1237
vendor-advisory, web, advisory
-
access.redhat.com
/errata/RHSA-2019:1260
vendor-advisory, web, advisory
-
usn.ubuntu.com
/4011-1/
vendor-advisory, web
-
usn.ubuntu.com
/4011-2/
vendor-advisory, web
-
lists.opensuse.org
/opensuse-security-announce/2019-06/msg00064.html
vendor-advisory, web
-
access.redhat.com
/errata/RHSA-2019:3964
vendor-advisory, web, advisory
-
access.redhat.com
/errata/RHSA-2019:4062
vendor-advisory, web, advisory
-
palletsprojects.com
/blog/jinja-281-released/
vendor-advisory, article
-
nvd.nist.gov
/vuln/detail/CVE-2016-10745
advisory
-
github.com
/advisories/GHSA-hj2j-77xm-mc5v
advisory
-
github.com
/pallets/jinja
package
-
github.com
/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2019-220.yaml
web
-
palletsprojects.com
/blog/jinja-281-released
web
-
usn.ubuntu.com
/4011-1
web
-
usn.ubuntu.com
/4011-2
web
Sources
- CVE List CVE-2016-10745
- GitHub Advisory GHSA-hj2j-77xm-mc5v
- NVD CVE-2016-10745
- OSV PYSEC-2019-220
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.