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)
{ "availability": "Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro", "binaries": [ { "binary_version": "2.7.2-2ubuntu0.1~esm6", "binary_name": "python-jinja2" }, { "binary_version": "2.7.2-2ubuntu0.1~esm6", "binary_name": "python-jinja2-doc" }, { "binary_version": "2.7.2-2ubuntu0.1~esm6", "binary_name": "python3-jinja2" } ] }
{ "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro", "binaries": [ { "binary_version": "2.8-1ubuntu0.1+esm5", "binary_name": "python-jinja2" }, { "binary_version": "2.8-1ubuntu0.1+esm5", "binary_name": "python-jinja2-doc" }, { "binary_version": "2.8-1ubuntu0.1+esm5", "binary_name": "python3-jinja2" } ] }
{ "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro", "binaries": [ { "binary_version": "2.10-1ubuntu0.18.04.1+esm4", "binary_name": "python-jinja2" }, { "binary_version": "2.10-1ubuntu0.18.04.1+esm4", "binary_name": "python-jinja2-doc" }, { "binary_version": "2.10-1ubuntu0.18.04.1+esm4", "binary_name": "python3-jinja2" } ] }
{ "availability": "No subscription required", "binaries": [ { "binary_version": "2.10.1-2ubuntu0.5", "binary_name": "python-jinja2" }, { "binary_version": "2.10.1-2ubuntu0.5", "binary_name": "python-jinja2-doc" }, { "binary_version": "2.10.1-2ubuntu0.5", "binary_name": "python3-jinja2" } ] }