USN-4011-1: Jinja2 vulnerabilities

Published Jun 6, 2019
·
Updated

Olivier Dony discovered that Jinja incorrectly handled str.format. An attacker could possibly use this issue to escape the sandbox. This issue only affected Ubuntu 16.04 LTS. (CVE-2016-10745) Brian Welch discovered that Jinja incorrectly handled str.formatmap. An attacker could possibly use this issue to escape the sandbox. (CVE-2019-10906)

Affected Software

16 affected componentsFixes available
All of the following
ubuntu/python-jinja2<2.10-1ubuntu0.19.04.1
2.10-1ubuntu0.19.04.1
Ubuntu Ubuntu=19.04
All of the following
ubuntu/python3-jinja2<2.10-1ubuntu0.19.04.1
2.10-1ubuntu0.19.04.1
Ubuntu Ubuntu=19.04
All of the following
ubuntu/python-jinja2<2.10-1ubuntu0.18.10.1
2.10-1ubuntu0.18.10.1
Ubuntu Ubuntu=18.10
All of the following
ubuntu/python3-jinja2<2.10-1ubuntu0.18.10.1
2.10-1ubuntu0.18.10.1
Ubuntu Ubuntu=18.10
All of the following
ubuntu/python-jinja2<2.10-1ubuntu0.18.04.1
2.10-1ubuntu0.18.04.1
Ubuntu Ubuntu=18.04
All of the following
ubuntu/python3-jinja2<2.10-1ubuntu0.18.04.1
2.10-1ubuntu0.18.04.1
Ubuntu Ubuntu=18.04
All of the following
ubuntu/python-jinja2<2.8-1ubuntu0.1
2.8-1ubuntu0.1
Ubuntu Ubuntu=16.04
All of the following
ubuntu/python3-jinja2<2.8-1ubuntu0.1
2.8-1ubuntu0.1
Ubuntu Ubuntu=16.04

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/python-jinja2 to a version that resolves this vulnerability.

    Fixed in 2.10-1ubuntu0.19.04.1
  2. Upgrade

    Upgrade ubuntu/python3-jinja2 to a version that resolves this vulnerability.

    Fixed in 2.10-1ubuntu0.19.04.1
  3. Upgrade

    Upgrade ubuntu/python-jinja2 to a version that resolves this vulnerability.

    Fixed in 2.10-1ubuntu0.18.10.1
  4. Upgrade

    Upgrade ubuntu/python3-jinja2 to a version that resolves this vulnerability.

    Fixed in 2.10-1ubuntu0.18.10.1
  5. Upgrade

    Upgrade ubuntu/python-jinja2 to a version that resolves this vulnerability.

    Fixed in 2.10-1ubuntu0.18.04.1
  6. Upgrade

    Upgrade ubuntu/python3-jinja2 to a version that resolves this vulnerability.

    Fixed in 2.10-1ubuntu0.18.04.1
  7. Upgrade

    Upgrade ubuntu/python-jinja2 to a version that resolves this vulnerability.

    Fixed in 2.8-1ubuntu0.1
  8. Upgrade

    Upgrade ubuntu/python3-jinja2 to a version that resolves this vulnerability.

    Fixed in 2.8-1ubuntu0.1

Event History

Jun 6, 2019
Advisory Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

What is the vulnerability ID for this security notice?

The vulnerability ID for this security notice is USN-4011-1.

2

What is the severity level of this vulnerability?

The severity level of this vulnerability is not mentioned.

3

What is the description of this vulnerability?

The vulnerability is related to Jinja2 and it incorrectly handles str.format and str.format_map, which could allow an attacker to escape the sandbox.

4

Which versions of Ubuntu are affected by this vulnerability?

This vulnerability only affects Ubuntu 16.04 LTS, Ubuntu 18.04, and Ubuntu 19.04.

5

How can I fix this vulnerability?

To fix this vulnerability, update the python-jinja2 and python3-jinja2 packages to version 2.10-1ubuntu0.19.04.1 for Ubuntu 19.04, version 2.10-1ubuntu0.18.10.1 for Ubuntu 18.10, version 2.10-1ubuntu0.18.04.1 for Ubuntu 18.04, and version 2.8-1ubuntu0.1 for Ubuntu 16.04.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203