CVE-2024-56201

Public on 2024-12-23
Modified on 2025-01-03
Description
Jinja is an extensible templating engine. 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
Important severity
Important
CVSS v3 Base Score
7.0
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
HAQM Linux 2023 ansible-core 2025-01-21 ALAS2023-2025-811 Fixed
HAQM Linux 1 python-jinja2 Not Affected
HAQM Linux 2 - Core python-jinja2 Not Affected
HAQM Linux 2023 python-jinja2 Not Affected
HAQM Linux 2 - Core python3-jinja2 Not Affected

CVSS Scores

Score Type Score Vector
HAQM Linux CVSSv3 7.0 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H