CVE-2024-56326

Severity: Important
Published: 2024-12-23

Fix Status by Distribution

Fixed in 16 of 27 tracked Linux releases

Fix evidence last checked: 2026-11-27 22:18 UTC

Get alerted when your releases are fixed
Fixed in:
No fix evidence found:
AlmaLinux 10
Oracle Linux 10
Red Hat Enterprise Linux 10
Rocky Linux 10
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 15 SP7
SUSE Linux Enterprise Server 16
Ubuntu 25.04 (Plucky Puffin)
Ubuntu 25.10 (Questing Quokka)
Ubuntu 26.04 LTS (Resolute Raccoon)
Ubuntu 26.10 (Stonking Stingray)
Interested in being alerted when these distributions have fixes? Set up an alert.

Jinja is an extensible templating engine. Prior to 3.1.5, 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. This vulnerability is fixed in 3.1.5.

Exploit evidence

No public exploit evidence reported by NVD

Last checked: 2026-07-31 19:09 UTC

  • No exploitation evidence · CISA Coordinator (Assessed 2024-12-27 17:50 UTC)

NVD evidence for CVE-2024-56326 is reported, not independently verified by Package Alert. It does not establish exploit reliability or applicability to a particular package or environment.