Skip to content
Fencer Intel
high 8.6

CVE-2019-10906 json

Jinja2 sandbox escape via string formatting

published 7y ago modified 4mo 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

  • nodejs Azure Linux 3.0 20.14.0-1

azure linux advisories AZL-41949

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Is CVE-2019-10906 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

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_0
    fixed: 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 more
    fixed: 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.el6
    +1 more products
    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
    fixed: 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
  • 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-jinja2
    +6 more products
    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
    not affected: vulnerable code not present

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-09).

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

Sources

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.