Advisory

UBUNTU-CVE-2024-56201

Also known as: CVE-2024-56201

Summary

The record has no summary.

Details

Jinja is an extensible templating engine. In versions on the 3.x branch prior to 3.1.5, a bug in the Jinja compiler allows an attacker that controls both the content and filename of a template to execute arbitrary Python code, regardless of if Jinja's sandbox is used. To exploit the vulnerability, an attacker needs to control both the filename and the contents of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates where the template author can also choose the template filename. This vulnerability is fixed in 3.1.5.

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Dates

Published
2024-12-23 16:15 UTC
Modified
2026-02-04 04:27 UTC

Affected packages and fixes

jinja2

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 2.10.1-2ubuntu0.4 (ecosystem)

Fixed versions

2.10.1-2ubuntu0.4

Fix

  • Fixed version 2.10.1-2ubuntu0.4
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

jinja2

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 3.0.3-1ubuntu0.3 (ecosystem)

Fixed versions

3.0.3-1ubuntu0.3

Fix

  • Fixed version 3.0.3-1ubuntu0.3
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

jinja2

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 3.1.2-1ubuntu1.2 (ecosystem)

Fixed versions

3.1.2-1ubuntu1.2

Fix

  • Fixed version 3.1.2-1ubuntu1.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences