USN-7343-1

Type: Security
Severity: Medium
Published: 2025-03-11
Ubuntu 20.04 LTS (Focal Fossa)
Ubuntu 22.04 LTS (Jammy Jellyfish)
Ubuntu 24.04 LTS (Noble Numbat)

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) Update Instructions: Run `sudo pro fix USN-7343-1` to fix the vulnerability. The problem can be corrected by updating your system to the following package versions: python-jinja2 - 2.10.1-2ubuntu0.5 python-jinja2-doc - 2.10.1-2ubuntu0.5 python3-jinja2 - 2.10.1-2ubuntu0.5 No subscription required

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-28T05:50:43.533Z UTC

Official vendor advisory

Ubuntu 20.04 LTS (Focal Fossa)

View source
Observed 2026-11-28T05:50:43.533Z UTC. Last updated 2025-11-26T08:44:30.532Z UTC.

Upstream Advisory

Affected Packages

  • python-jinja2 2.10.1-2ubuntu0.5-2.10.1-2ubuntu0.5

  • python-jinja2-doc 2.10.1-2ubuntu0.5-2.10.1-2ubuntu0.5

  • python3-jinja2 2.10.1-2ubuntu0.5-2.10.1-2ubuntu0.5

  • python-jinja2-doc 3.0.3-1ubuntu0.4-3.0.3-1ubuntu0.4

  • python3-jinja2 3.0.3-1ubuntu0.4-3.0.3-1ubuntu0.4

  • python-jinja2-doc 3.1.2-1ubuntu1.3-3.1.2-1ubuntu1.3

  • python3-jinja2 3.1.2-1ubuntu1.3-3.1.2-1ubuntu1.3

Interested in being alerted when there are new versions of python-jinja2 and the other packages? Set up an alert.
USN-7343-1: Jinja2 vulnerabilities | Package Alert