USN-7343-2: Jinja2 regression

Published Mar 12, 2025
·
Updated

USN-7343-1 fixed vulnerabilities in Jinja2. The update introduced a regression when attempting to import Jinja2 on Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. This update fixes the problem. We apologize for the inconvenience. Original advisory details: Rafal Krupinski discovered that Jinja2 did not properly restrict the execution of code in situations where templates are used maliciously. An attacker with control over a template's filename and content could potentially use this issue to enable the execution of arbitrary code. This issue only affected Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2024-56201) It was discovered that Jinja2 sandboxed environments could be escaped through a call to a string format method. An attacker could possibly use this issue to enable the execution of arbitrary code. This issue only affected Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. (CVE-2024-56326) It was discovered that Jinja2 sandboxed environments could be escaped through the malicious use of certain filters. An attacker could possibly use this issue to enable the execution of arbitrary code. (CVE-2025-27516)

Affected Software

8 affected componentsFixes available
All of the following
ubuntu/python-jinja2<2.10.1-2ubuntu0.6
2.10.1-2ubuntu0.6
Ubuntu Ubuntu=20.04
All of the following
ubuntu/python3-jinja2<2.10.1-2ubuntu0.6
2.10.1-2ubuntu0.6
Ubuntu Ubuntu=20.04
All of the following
ubuntu/python-jinja2<2.10-1ubuntu0.18.04.1+esm5
2.10-1ubuntu0.18.04.1+esm5
Ubuntu Ubuntu=18.04
All of the following
ubuntu/python3-jinja2<2.10-1ubuntu0.18.04.1+esm5
2.10-1ubuntu0.18.04.1+esm5
Ubuntu Ubuntu=18.04

Event History

Mar 12, 2025
Advisory Published
via Ubuntu·12:00 AM

Frequently Asked Questions

1

What is the severity of USN-7343-2?

The severity of USN-7343-2 is related to a regression issue with Jinja2 impacting Ubuntu 18.04 LTS and 20.04 LTS.

2

How do I fix USN-7343-2?

To fix USN-7343-2, update the Jinja2 package to the remedied version specified in the advisory.

3

What versions are affected by USN-7343-2?

USN-7343-2 affects python-jinja2 and python3-jinja2 versions prior to 2.10.1-2ubuntu0.6 for Ubuntu 20.04 and prior to 2.10-1ubuntu0.18.04.1+esm5 for Ubuntu 18.04.

4

Who discovered the issue in USN-7343-2?

The issue reported in USN-7343-2 was discovered by Rafal Krupinski.

5

Which Ubuntu releases does USN-7343-2 apply to?

USN-7343-2 applies to Ubuntu 18.04 LTS and Ubuntu 20.04 LTS.

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