CVE-2024-56326
ADVISORY - githubSummary
An oversight in how the Jinja sandboxed environment detects calls to str.format
allows an attacker that controls the content of a template to execute arbitrary Python code.
To exploit the vulnerability, an attacker needs to control the content 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.
Jinja's sandbox does catch calls to str.format
and ensures they don't escape the sandbox. However, it's possible to store a reference to a malicious string's format
method, then pass that to a filter that calls it. No such filters are built-in to Jinja, but could be present through custom filters in an application. After the fix, such indirect calls are also handled by the sandbox.
Common Weakness Enumeration (CWE)
Protection Mechanism Failure
NIST
CVSS SCORE
5.4mediumGitHub
1.8
CVSS SCORE
5.4mediumAlpine
-
Debian
-
Ubuntu
-
CVSS SCORE
N/AmediumAlma
-
CVSS SCORE
N/AhighAlma
-
CVSS SCORE
N/AhighAlma
-
CVSS SCORE
N/AhighAmazon
-
CVSS SCORE
N/AhighAmazon
-
CVSS SCORE
N/AhighAmazon
-
CVSS SCORE
N/AhighAmazon
-
CVSS SCORE
N/AhighRed Hat
1.3
CVSS SCORE
7.3highRocky
-
CVSS SCORE
N/AhighRocky
-
CVSS SCORE
N/AhighRocky
-
CVSS SCORE
N/AhighOracle
-
CVSS SCORE
N/AhighOracle
-
CVSS SCORE
N/AhighOracle
-
CVSS SCORE
N/AhighOracle
-
CVSS SCORE
N/AmediumChainguard
CGA-3cj4-2jg2-4qm3
-
Chainguard
CGA-48m9-g63w-3pmj
-
Chainguard
CGA-4qcp-6r5p-mjg3
-
Chainguard
CGA-5hw8-g48r-96hf
-
Chainguard
CGA-6g29-xf5c-xrq4
-
Chainguard
CGA-6x5x-2jv3-mxqp
-
Chainguard
CGA-79fr-pvjg-j9xm
-
Chainguard
CGA-7vgm-6xjc-hxcp
-
Chainguard
CGA-8r3m-hvvj-88ff
-
Chainguard
CGA-98gp-2h94-6x8g
-
Chainguard
CGA-98jf-gjq4-76gh
-
Chainguard
CGA-9j77-97cf-hh4c
-
Chainguard
CGA-cm3v-47cr-pj4v
-
Chainguard
CGA-crfr-r549-cvmg
-
Chainguard
CGA-cvcr-7w7q-rfvj
-
Chainguard
CGA-f7wq-crqm-v76f
-
Chainguard
CGA-gm37-p355-3fq6
-
Chainguard
CGA-h3v9-xgx5-mrgr
-
Chainguard
CGA-hh26-mf49-p96j
-
Chainguard
CGA-hqfx-4c6f-wrjp
-
Chainguard
CGA-hvm4-vp8w-6q8r
-
Chainguard
CGA-p9v5-jpj2-q3ww
-
Chainguard
CGA-rx48-pgcw-gx64
-
Chainguard
CGA-v3rh-g84v-9h7h
-
Chainguard
CGA-vw7h-8896-82pq
-
Chainguard
CGA-w2xv-8gr2-xp8m
-
Chainguard
CGA-w9mm-cg4f-7jq7
-
Chainguard
CGA-wxqh-34vm-g4hv
-
Chainguard
CGA-x4cq-2pgw-pj4r
-
Photon
CVE-2024-56326
-
CVSS SCORE
7.3highminimos
MINI-p3gx-8p24-qq24
-