CVE-2024-56201: Jinja has a sandbox breakout through malicious filenames
Vulnerability summary
CVE-2024-56201 is a high (CVSS 8.8) vulnerability in pallets jinja. EPSS estimates a 0.31% chance of exploitation in the next 30 days, higher than 23.5% of scored vulnerabilities.
Not severe (CVSS 5.4, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 20 · Related 24Timeline
- 23-12-2024PublishedVulnerability first disclosed.
- 18-02-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
11 scores · 8 sources · 2 versions- OSV · PypiEcosystem advisory · calculated5.4MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · UbuntuEcosystem advisory · calculated5.4MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · WolfiEcosystem advisory · calculated5.4MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated5.4MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- NVDNIST5.4MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · AlpineEcosystem advisory · calculated8.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- OSV · PypiEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS trend
Probability
0.31%
Chance of exploitation in the next 30 days
Percentile
24%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.31% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard34 products
- airflow< 2.10.4-r2
- airflow-bitnami-compat< 2.10.4-r2
- ansible-operator< 1.37.1-r0
- ansible-operator-compat< 1.37.1-r0
- apache-beam-python-3.11-sdk< 2.61.0-r1
Wolfi28 products
- airflow< 2.10.4-r2
- airflow-bitnami-compat< 2.10.4-r2
- checkov< 3.2.432-r0
- dask-gateway< 2024.1.0-r13
- emissary< 3.9.1-r8
Alpine1 product
- py3-jinja2< 3.1.5-r0
Debian1 product
- jinja2< 3.1.2-1+deb12u2 | < 3.1.5-1
Pallets1 product
- jinja≥ 3.0.0, < 3.1.5
Palletsprojects1 product
- jinja≥ 3.0.0, < 3.1.5
PyPI1 product
- jinja2≥ 3.0.0, < 3.1.5
Ubuntu1 product
- jinja2< 2.7.2-2ubuntu0.1~esm6 | < 2.8-1ubuntu0.1+esm5 | < 2.10-1ubuntu0.18.04.1+esm3 | < 2.10.1-2ubuntu0.4 | < 3.0.3-1ubuntu0.3 | < 3.1.2-1ubuntu1.2
8 vendors · 68 products
References
15 links- github.com/pallets/jinja/security/advisories/GHSA-gmj6-6f8f-6699X Refsource CONFIRMWEBREPORTAdvisoryVendor Advisory
- github.com/pallets/jinjaPACKAGE
- pypi.org/project/jinja2PACKAGE