CVE-2019-10906 json
Jinja2 sandbox escape via string formatting
published 2019-04-06 7 y ago modified 2026-06-17 4 mo ago also GHSA-462w-v97r-4m45 , PYSEC-2019-217 , EUVD-2019-0068
- cvss
- 8.6
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.6%
- EPSS 3.6% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
Summary
In Pallets Jinja before 2.10.1, str.format_map allows a sandbox escape.
Patch / fix
- pypi jinja2 2.10.1
- palletsprojects jinja 2.10.1
- jinja2 Debian 14, Debian 13, Debian 12 2.10-2
debian advisories DEBIAN-CVE-2019-10906
- jinja2 Ubuntu 16.04 LTS 2.8-1ubuntu0.1
- jinja2 Ubuntu 18.04 LTS 2.10-1ubuntu0.18.04.1
- jinja2 Ubuntu Pro 14.04 LTS 2.7.2-2ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2019-10906
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
- tfm satellite capsule 6.6, satellite 6.6 5.0-7.el7sat
- kobo satellite capsule 6.6, satellite 6.6 0.5.1-1.el7sat
- pulp satellite capsule 6.6, satellite 6.6 2.19.1.1-1.el7sat
- gofer satellite capsule 6.6, satellite 6.6 2.12.5-5.el7sat
- future satellite capsule 6.6, satellite 6.6 0.16.0-11.el7sat
- ostree satellite capsule 6.6, satellite 6.6 2017.1-2.atomic.el7
- foreman satellite capsule 6.6, satellite 6.6 1.22.0.32-1.el7sat
- katello satellite capsule 6.6, satellite 6.6 3.12.0-2.el7sat
red hat advisories RHSA-2019:3172RHSA-2019:1329RHSA-2019:1237RHSA-2019:1152
- 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-2020:3096-1SUSE-SU-2019:1554-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
- python-jinja2 Rocky Linux 8 2.10.1-2.el8_0
rocky linux advisories RLSA-2019:1152
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-2019-10906 updated cvss 9.0
python-jinja2: str.format_map allows sandbox escape
-
Red Hat Enterprise Linux AppStream (v. 8) python-jinja2 2.10.1-2.el8_0, python3-jinja2 2.10.1-2.el8_0fixed: vendor fix “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.” RHSA-2019:1152
-
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 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.” RHSA-2019:3172
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-python35-python-jinja2 2.8.1-2.el6, rh-python36-python-jinja2 2.9.6-3.el6 Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-python35-python-jinja2 2.8.1-2.el7, rh-python36-python-jinja2 2.9.6-3.el7 Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-python35-python-jinja2 2.8.1-2.el7, rh-python36-python-jinja2 2.9.6-3.el7 Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-python35-python-jinja2 2.8.1-2.el7, rh-python36-python-jinja2 2.9.6-3.el7 Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-python35-python-jinja2 2.8.1-2.el7, rh-python36-python-jinja2 2.9.6-3.el7 Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-python35-python-jinja2 2.8.1-2.el6, rh-python36-python-jinja2 2.9.6-3.el6fixed: vendor fix “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.” RHSA-2019:1237
+1 more productsfewer
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-python35-python-jinja2 2.8.1-2.el7, rh-python36-python-jinja2 2.9.6-3.el7 -
Red Hat Ceph Storage 2 python-jinja2 Red Hat Ceph Storage 3 python-jinja2 Red Hat Enterprise Linux 6 python-jinja2 Red Hat Enterprise Linux 7 python-jinja2 Red Hat Enterprise Linux 8 python-jinja2, python3-jinja2 Red Hat OpenStack Platform 13 (Queens) python2-jinja2not affected: vulnerable code not present
+6 more productsfewer
Red Hat OpenStack Platform 14 (Rocky) python2-jinja2 Red Hat OpenStack Platform 15 (Stein) python2-jinja2, python3-jinja2 Red Hat Software Collections python27-python-jinja2 Red Hat Storage 3 python-jinja2 Red Hat Update Infrastructure 3 for Cloud Providers python-jinja2 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.60% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.6 | CVSS:3.1/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.10.1 |
2.10.1 |
Classification
- Weakness
-
- CWE-693 Protection Mechanism Failure
References
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/QCDYIS254EJMBNWOG4S5QY6AOTOR4TZU/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/DSW3QZMFVVR7YE3UT4YRQA272TYAL5AF/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/TS7IVZAJBWOHNRDMFJDIZVFCMRP6YIUQ/
vendor-advisory
-
access.redhat.com
/errata/RHSA-2019:1152
vendor-advisory, web, third-party-advisory, advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-05/msg00030.html
vendor-advisory, web, mailing-list, third-party-advisory
-
access.redhat.com
/errata/RHSA-2019:1237
vendor-advisory, web, third-party-advisory, advisory
-
access.redhat.com
/errata/RHSA-2019:1329
vendor-advisory, web, third-party-advisory, advisory
-
usn.ubuntu.com
/4011-1/
vendor-advisory, third-party-advisory, web
-
usn.ubuntu.com
/4011-2/
vendor-advisory, third-party-advisory, web
-
lists.opensuse.org
/opensuse-security-announce/2019-06/msg00064.html
vendor-advisory, web, mailing-list, third-party-advisory
-
palletsprojects.com
/blog/jinja-2-10-1-released
web, release-notes, vendor-advisory, article
-
lists.apache.org
/thread.html/46c055e173b52d599c648a98199972dbd6a89d2b4c4647b0500f2284%40%3Cdevnull.infra.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/b2380d147b508bbcb90d2cad443c159e63e12555966ab4f320ee22da%40%3Ccommits.airflow.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/f0c4a03418bcfe70c539c5dbaf99c04c98da13bfa1d3266f08564316%40%3Ccommits.airflow.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/57673a78c4d5c870d3f21465c7e2946b9f8285c7c57e54c2ae552f02%40%3Ccommits.airflow.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/320441dccbd9a545320f5f07306d711d4bbd31ba43dc9eebcfc602df%40%3Cdevnull.infra.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/2b52b9c8b9d6366a4f1b407a8bde6af28d9fc73fdb3b37695fd0d9ac%40%3Cdevnull.infra.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/7f39f01392d320dfb48e4901db68daeece62fd60ef20955966739993%40%3Ccommits.airflow.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/09fc842ff444cd43d9d4c510756fec625ef8eb1175f14fd21de2605f%40%3Cdevnull.infra.apache.org%3E
mailing-list
-
nvd.nist.gov
/vuln/detail/CVE-2019-10906
advisory
-
usn.ubuntu.com
/4011-2
web
-
usn.ubuntu.com
/4011-1
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/TS7IVZAJBWOHNRDMFJDIZVFCMRP6YIUQ
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/QCDYIS254EJMBNWOG4S5QY6AOTOR4TZU
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/DSW3QZMFVVR7YE3UT4YRQA272TYAL5AF
web
-
lists.apache.org
/thread.html/f0c4a03418bcfe70c539c5dbaf99c04c98da13bfa1d3266f08564316@%3Ccommits.airflow.apache.org%3E
web
-
lists.apache.org
/thread.html/b2380d147b508bbcb90d2cad443c159e63e12555966ab4f320ee22da@%3Ccommits.airflow.apache.org%3E
web
-
lists.apache.org
/thread.html/7f39f01392d320dfb48e4901db68daeece62fd60ef20955966739993@%3Ccommits.airflow.apache.org%3E
web
-
lists.apache.org
/thread.html/57673a78c4d5c870d3f21465c7e2946b9f8285c7c57e54c2ae552f02@%3Ccommits.airflow.apache.org%3E
web
-
lists.apache.org
/thread.html/46c055e173b52d599c648a98199972dbd6a89d2b4c4647b0500f2284@%3Cdevnull.infra.apache.org%3E
web
-
lists.apache.org
/thread.html/320441dccbd9a545320f5f07306d711d4bbd31ba43dc9eebcfc602df@%3Cdevnull.infra.apache.org%3E
web
-
lists.apache.org
/thread.html/2b52b9c8b9d6366a4f1b407a8bde6af28d9fc73fdb3b37695fd0d9ac@%3Cdevnull.infra.apache.org%3E
web
-
lists.apache.org
/thread.html/09fc842ff444cd43d9d4c510756fec625ef8eb1175f14fd21de2605f@%3Cdevnull.infra.apache.org%3E
web
-
github.com
/pypa/advisory-database/tree/main/vulns/jinja2/PYSEC-2019-217.yaml
web
-
github.com
/pallets/jinja
package
-
github.com
/advisories/GHSA-462w-v97r-4m45
advisory
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/QCDYIS254EJMBNWOG4S5QY6AOTOR4TZU/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/DSW3QZMFVVR7YE3UT4YRQA272TYAL5AF/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/TS7IVZAJBWOHNRDMFJDIZVFCMRP6YIUQ/
web
Sources
- CVE List CVE-2019-10906
- GitHub Advisory GHSA-462w-v97r-4m45
- NVD CVE-2019-10906
- OSV PYSEC-2019-217
Fencer Vulns 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.