CVE-2024-56201

HIGH

Jinja <3.1.5 - Code Injection

Title source: llm
STIX 2.1

Description

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.

Scores

CVSS v3 8.8
EPSS 0.0046
EPSS Percentile 64.1%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-150
Status published
Products (2)
palletsprojects/jinja 3.0.0 - 3.1.5
pypi/jinja2 3.0.0 - 3.1.5PyPI
Published Dec 23, 2024
Tracked Since Feb 18, 2026