CVE-2024-56201

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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
UNKNOWN
---
GitHub_MCNA
---
---
CISA-ADPADP
---
---
Awaiting analysis
This vulnerability is currently awaiting analysis.
Base Score
CVSS 3.x
EPSS Score
Percentile: 15%
Debian logo
Debian Releases
Debian Product
Codename
jinja2
bullseye
2.11.3-1
not-affected
bullseye (security)
2.11.3-1+deb11u4
fixed
bookworm
3.1.2-1+deb12u2
fixed
sid
3.1.6-1
fixed
trixie
3.1.6-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
jinja2
plucky
not-affected
oracular
Fixed 3.1.3-1ubuntu1.24.10.1
released
noble
Fixed 3.1.2-1ubuntu1.2
released
jammy
Fixed 3.0.3-1ubuntu0.3
released
focal
Fixed 2.10.1-2ubuntu0.4
released
bionic
Fixed 2.10-1ubuntu0.18.04.1+esm3
released
xenial
Fixed 2.8-1ubuntu0.1+esm5
released
trusty
Fixed 2.7.2-2ubuntu0.1~esm6
released