ADVISORIES

Vulnerability

CVE-2024-56326

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.

133 advisories report this vulnerability, across 15 ecosystems.

Advisories in Red Hat

  • RHBA-2025:3029

    Red Hat Bug Fix Advisory: Release of components for RHOSO 18.0.6 (Feature Release 2)

    CVE-2024-56201CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHEA-2024:6126

    Red Hat Enhancement Advisory: OpenShift Container Platform 4.18.1 packages and security update

    CVE-2024-11218CVE-2024-56201CVE-2024-56326CVE-2024-9341 Red Hat Updated 25 November 2026
  • RHSA-2025:0308

    Red Hat Security Advisory: fence-agents security update

    CVE-2024-56201CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:0335

    Red Hat Security Advisory: fence-agents security update

    CVE-2024-56201CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:0338

    Red Hat Security Advisory: fence-agents security update

    CVE-2024-56201CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:0345

    Red Hat Security Advisory: fence-agents security update

    CVE-2024-56201CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:0656

    Red Hat Security Advisory: OpenShift Container Platform 4.17.14 packages and security update

    CVE-2024-56201CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:0667

    Red Hat Security Advisory: python-jinja2 security update

    CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:0711

    Red Hat Security Advisory: python-jinja2 security update

    CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:0721

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update

    CVE-2024-53908CVE-2024-56201CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:0777

    Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update

    CVE-2024-53907CVE-2024-56201CVE-2024-56326CVE-2024-56374 Red Hat Updated 24 November 2026
  • RHSA-2025:0830

    Red Hat Security Advisory: OpenShift Container Platform 4.16.33 packages and security update

    CVE-2024-11218CVE-2024-56201CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:0834

    Red Hat Security Advisory: OpenShift Container Platform 4.12.72 packages and security update

    CVE-2024-56201CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:0842

    Red Hat Security Advisory: OpenShift Container Platform 4.14.46 security update

    CVE-2024-56201CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:0850

    Red Hat Security Advisory: python-jinja2 security update

    CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:0883

    Red Hat Security Advisory: python-jinja2 security update

    CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:0950

    Red Hat Security Advisory: python-jinja2 security update

    CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:0951

    Red Hat Security Advisory: python-jinja2 security update

    CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:0978

    Red Hat Security Advisory: python-jinja2 security update

    CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:1109

    Red Hat Security Advisory: python-jinja2 security update

    CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:1118

    Red Hat Security Advisory: OpenShift Container Platform 4.13.55 packages and security update

    CVE-2024-56201CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:1130

    Red Hat Security Advisory: OpenShift Container Platform 4.15.45 packages and security update

    CVE-2024-56201CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:1250

    Red Hat Security Advisory: python-jinja2 security update

    CVE-2024-56326 Red Hat Updated 24 November 2026
  • RHSA-2025:1861

    Red Hat Security Advisory: Red Hat OpenStack Platform 17.1.4 (openstack-ansible-core) security update

    CVE-2024-56201CVE-2024-56326CVE-2024-9902 Red Hat Updated 26 November 2026
  • RHSA-2025:2399

    Red Hat Security Advisory: Satellite 6.16.3 Async Update

    CVE-2024-35195CVE-2024-56326CVE-2024-56374 Red Hat Updated 26 November 2026
  • RHSA-2025:2612

    Red Hat Security Advisory: python-jinja2 security update

    CVE-2024-56326 Red Hat Updated 26 November 2026
  • RHSA-2025:4576

    Red Hat Security Advisory: Satellite 6.17.0 release

    CVE-2024-56326CVE-2024-56374CVE-2025-27407CVE-2025-27610 Red Hat Updated 26 November 2026
  • RHVEX-CVE-2024-56326

    jinja2: Jinja has a sandbox breakout through indirect reference to format method

    Moderate CVE-2024-56326 Red Hat Updated 26 November 2026

References