Ubuntu Security Notice
USN-7244-1
jinja2 vulnerabilities
Details
It was discovered that Jinja2 incorrectly handled certain filenames when compiling template content. An attacker could possibly use this issue to execute arbitrary code. (CVE-2024-56201)
It was discovered that Jinja2 incorrectly handled string formatting calls. An attacker could possibly use this issue to execute arbitrary code. (CVE-2024-56326)
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:18.04:LTS | jinja2 | All versions before 2.10-1ubuntu0.18.04.1+esm3 (fixed in 2.10-1ubuntu0.18.04.1+esm3) |
| Ubuntu:20.04:LTS | jinja2 | All versions before 2.10.1-2ubuntu0.4 (fixed in 2.10.1-2ubuntu0.4) |
| Ubuntu:22.04:LTS | jinja2 | All versions before 3.0.3-1ubuntu0.3 (fixed in 3.0.3-1ubuntu0.3) |
| Ubuntu:24.04:LTS | jinja2 | All versions before 3.1.2-1ubuntu1.2 (fixed in 3.1.2-1ubuntu1.2) |