PT-2023-9827 · Jinja+10 · Jinja+10

Sleiner

·

Published

2023-01-16

·

Updated

2026-06-03

·

CVE-2024-56201

CVSS v3.1

8.8

High

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Jinja versions prior to 3.1.5
Description Jinja is an extensible templating engine. 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 issue, an attacker needs to control both the filename and the contents of a template. This impacts users of applications which execute untrusted templates where the template author can also choose the template filename.
Recommendations For versions prior to 3.1.5, update to version 3.1.5 to resolve the issue. As a temporary workaround, consider restricting the ability of template authors to choose the template filename to minimize the risk of exploitation. Avoid using untrusted templates where the template author can control both the filename and the contents.

Exploit

Fix

DoS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2025:0308
ALSA-2025_0308
ALSA-2025_3406
ALT-PU-2025-11958
ALT-PU-2025-12986
AZL-54650
AZL-54660
BDU:2025-00112
CVE-2024-56201
ECHO-2933-1E79-AF27
GHSA-GMJ6-6F8F-6699
INFSA-2025_0308
OESA-2025-1004
OESA-2025-1005
OESA-2025-1006
OESA-2025-1007
OESA-2025-1008
OESA-2025-1030
OPENSUSE-SU-2025:14997-1
OPENSUSE-SU-2025_0006-1
RHSA-2025:0308
RHSA-2025:0335
RHSA-2025:0338
RHSA-2025:0345
RHSA-2025:0656
RHSA-2025:0721
RHSA-2025:0777
RHSA-2025:0830
RHSA-2025:0834
RHSA-2025:0842
RHSA-2025:1118
RHSA-2025:1130
RHSA-2025:1861
RHSA-2025:3491
RHSA-2025_0308
RLSA-2025:0308
SUSE-SU-2025:0006-1
SUSE-SU-2025:20117-1
SUSE-SU-2025:20254-1
SUSE-SU-2025_0006-1
USN-7244-1
USN-7343-1
USN-7343-2

Affected Products

Alt Linux
Almalinux
Astra Linux
Debian
Jinja
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu