Read the docs
TI-2024-37171 Aliases CVE-2024-56201GHSA-gmj6-6f8f-6699

Jinja has a sandbox breakout through malicious filenames

Priority LOW 26CWE-150Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
Passive
Attack complexity
Low
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 36 fixed, 6 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00307 23rd percentileScored 2026-11-07
Fix Partial jinja (pallets): 3.1.5jinja2 (PyPI): 3.1.5Red Hat: 25 advisoriesRed Hat: 36 fixed, 6 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
palletsjinja3.0.0 to before 3.1.53.1.5Patch availableCNA
—jinja2 (PyPI)3.0.0 to before 3.1.53.1.5Patch availableGHSA-gmj6-6f8f-6699
  • jinja Vendorpallets Affected 3.0.0 to before 3.1.5 Fixed in 3.1.5 Patch available CNA
  • jinja2 (PyPI) Vendor— Affected 3.0.0 to before 3.1.5 Fixed in 3.1.5 Patch available GHSA-gmj6-6f8f-6699

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:palletsprojects:jinja:*:*:*:*:*:*:*:*3.0.0 to before 3.1.5Vulnerablepallets
  • cpe:2.3:a:palletsprojects:jinja:*:*:*:*:*:*:*:* Versions 3.0.0 to before 3.1.5 Vulnerable ·pallets

Remediation

  • Fix · CNA jinja (pallets) Fixed in 3.1.5
  • Fix · GHSA-gmj6-6f8f-6699 jinja2 (PyPI) Fixed in 3.1.5 Advisory →

Red Hat 25 advisories

  • RHSA-2025:3491 Released 2025-04-01 · Red Hat rating Important
    Satellite 6.15.5.2 Async Update
    • Red Hat Satellite 6.15 for RHEL 8 python-jinja2-3.1.5-1.el8pc, python3.11-jinja2-3.1.5-1.el8pc, rubygem-graphql-1.13.24-1.el8sat +1
  • RHSA-2025:3397 Released 2025-03-31 · Red Hat rating Important
    RHOAI 2.16.0 - Red Hat OpenShift AI
    • Red Hat OpenShift AI 2.16 registry.redhat.io/rhoai/odh-codeflare-operator-rhel8, registry.redhat.io/rhoai/odh-dashboard-rhel8, registry.redhat.io/rhoai/odh-data-science-pipelines-argo-argoexec-rhel8 +13
  • RHSA-2025:3374 Released 2025-03-27 · Red Hat rating Important
    Red Hat Developer Hub 1.5.1 release.
    • Red Hat Developer Hub 1.5 registry.redhat.io/rhdh/rhdh-hub-rhel9, registry.redhat.io/rhdh/rhdh-rhel9-operator
Show 22 more Red Hat advisories
  • RHSA-2025:3368 Released 2025-03-27 · Red Hat rating Important
    RHOAI 2.16.0 - Red Hat OpenShift AI
    • Red Hat OpenShift AI 2.16 registry.redhat.io/rhoai/odh-codeflare-operator-rhel8, registry.redhat.io/rhoai/odh-dashboard-rhel8, registry.redhat.io/rhoai/odh-data-science-pipelines-argo-argoexec-rhel8 +13
  • RHSA-2025:1861 Released 2025-02-25 · Red Hat rating Important
    Red Hat OpenStack Platform 17.1.4 (openstack-ansible-core) security update
    • Red Hat OpenStack Platform 17.1 openstack-ansible-core-2.14.2-4.6.el9ost
  • RHSA-2024:6121 Released 2025-02-25 · Red Hat rating Important
    OpenShift Container Platform 4.18.1 security and extras update
    • Red Hat OpenShift Container Platform 4.18 openshift4/ingress-node-firewall-rhel9, openshift4/ingress-node-firewall-rhel9-operator, openshift4/kube-compare-artifacts-rhel9 +47
  • RHSA-2025:1118 Released 2025-02-13 · Red Hat rating Important
    OpenShift Container Platform 4.13.55 packages and security update
    • Ironic content for Red Hat OpenShift Container Platform 4.13 python-jinja2-3.0.1-6.el9.2, python3-jinja2-3.0.1-6.el9.2
  • RHSA-2025:1130 Released 2025-02-12 · Red Hat rating Important
    OpenShift Container Platform 4.15.45 packages and security update
    • Ironic content for Red Hat OpenShift Container Platform 4.15 python-jinja2-3.0.1-6.el9.2, python3-jinja2-3.0.1-6.el9.2
  • RHSA-2025:1123 Released 2025-02-12 · Red Hat rating Important
    OpenShift Container Platform 4.16.34 security and extras update
    • Red Hat OpenShift Container Platform 4.16 openshift4/ose-ansible-rhel9-operator, openshift4/ose-helm-rhel9-operator, openshift4/ose-operator-sdk-rhel9
  • RHSA-2025:1249 Released 2025-02-10 · Red Hat rating Important
    updated discovery container images
    • Discovery 1 for RHEL 9 discovery/discovery-server-rhel9, discovery/discovery-ui-rhel9
  • RHSA-2025:0830 Released 2025-02-10 · Red Hat rating Important
    OpenShift Container Platform 4.16.33 packages and security update
    • Ironic content for Red Hat OpenShift Container Platform 4.16 python-jinja2-3.0.1-6.el9.2, python3-jinja2-3.0.1-6.el9.2
    • Red Hat OpenShift Container Platform 4.16 podman-4:4.9.4-13.rhaos4.16.el8, podman-4:4.9.4-15.rhaos4.16.el9, podman-catatonit-4:4.9.4-13.rhaos4.16.el8 +9
  • RHSA-2025:0842 Released 2025-02-06 · Red Hat rating Important
    OpenShift Container Platform 4.14.46 security update
    • Ironic content for Red Hat OpenShift Container Platform 4.14 python-jinja2-3.0.1-6.el9.2, python3-jinja2-3.0.1-6.el9.2
  • RHSA-2025:0834 Released 2025-02-06 · Red Hat rating Important
    OpenShift Container Platform 4.12.72 packages and security update
    • Ironic content for Red Hat OpenShift Container Platform 4.12 python-jinja2-3.0.1-6.el9.2, python3-jinja2-3.0.1-6.el9.2
  • RHSA-2025:1101 Released 2025-02-05 · Red Hat rating Important
    Red Hat Ansible Automation Platform Execution Environments Container Release Update
    • Ansible Automation Platform Execution Environments ansible-automation-platform/ee-minimal-rhel8, ansible-automation-platform/ee-minimal-rhel9
  • RHSA-2025:0875 Released 2025-02-05 · Red Hat rating Important
    OpenShift Container Platform 4.17.15 security and extras update
    • Red Hat OpenShift Container Platform 4.17 openshift4/nmstate-console-plugin-rhel9, openshift4/ose-ansible-rhel9-operator, openshift4/ose-helm-rhel9-operator +2
  • RHSA-2025:0777 Released 2025-01-28 · Red Hat rating Important
    Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update
    • Red Hat Ansible Automation Platform 2.5 for RHEL 8 automation-controller-venv-tower-4.6.7-1.el8ap, python3.11-django-4.2.18-1.el8ap, python3.11-jinja2-3.1.5-1.el8ap
    • Red Hat Ansible Automation Platform 2.5 for RHEL 9 automation-controller-venv-tower-4.6.7-1.el9ap, python3.11-django-4.2.18-1.el9ap, python3.11-jinja2-3.1.5-1.el9ap
  • RHSA-2025:0656 Released 2025-01-28 · Red Hat rating Important
    OpenShift Container Platform 4.17.14 packages and security update
    • Ironic content for Red Hat OpenShift Container Platform 4.17 python-jinja2-3.1.5-1.el9, python3-jinja2+i18n-3.1.5-1.el9, python3-jinja2-3.1.5-1.el9
  • RHSA-2025:0753 Released 2025-01-28 · Red Hat rating Important
    Red Hat Ansible Automation Platform Execution Environments Container Release Update
    • Ansible Automation Platform Execution Environments ansible-automation-platform/ee-minimal-rhel8, ansible-automation-platform/ee-minimal-rhel9
  • RHSA-2025:0722 Released 2025-01-27 · Red Hat rating Important
    Red Hat Ansible Automation Platform 2.4 Container Release Update
    • Red Hat Ansible Automation Platform 2.4 for RHEL 8 ansible-automation-platform-24/lightspeed-rhel8-operator
  • RHSA-2025:0721 Released 2025-01-27 · Red Hat rating Important
    Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update
    • Red Hat Ansible Automation Platform 2.4 for RHEL 8 automation-controller-venv-tower-4.5.17-1.el8ap, python39-jinja2-3.1.5-1.el8ap, python3x-jinja2-3.1.5-1.el8ap
    • Red Hat Ansible Automation Platform 2.4 for RHEL 9 automation-controller-venv-tower-4.5.17-1.el9ap, python-jinja2-3.1.5-1.el9ap, python3-jinja2-3.1.5-1.el9ap
  • RHSA-2025:0345 Released 2025-01-15 · Red Hat rating Important
    fence-agents security update
    • Red Hat Enterprise Linux AppStream E4S (v.9.0) fence-agents-4.10.0-20.el9_0.20, fence-agents-common-4.10.0-20.el9_0.20, fence-agents-compute-4.10.0-20.el9_0.20 +12
    • Red Hat Enterprise Linux High Availability E4S (v.9.0) fence-agents-aliyun-4.10.0-20.el9_0.20, fence-agents-all-4.10.0-20.el9_0.20, fence-agents-amt-ws-4.10.0-20.el9_0.20 +39
    • Red Hat Enterprise Linux ResilientStorage E4S (v.9.0) fence-agents-aliyun-4.10.0-20.el9_0.20, fence-agents-all-4.10.0-20.el9_0.20, fence-agents-amt-ws-4.10.0-20.el9_0.20 +39
  • RHSA-2025:0341 Released 2025-01-15 · Red Hat rating Important
    Red Hat Ansible Automation Platform 2.5 Container Release Update
    • Red Hat Ansible Automation Platform 2.5 for RHEL 8 ansible-automation-platform-25/lightspeed-rhel8
  • RHSA-2025:0338 Released 2025-01-15 · Red Hat rating Important
    fence-agents security update
    • Red Hat Enterprise Linux AppStream EUS (v.9.4) fence-agents-4.10.0-62.el9_4.10, fence-agents-common-4.10.0-62.el9_4.10, fence-agents-compute-4.10.0-62.el9_4.10 +11
    • Red Hat Enterprise Linux High Availability EUS (v.9.4) fence-agents-aliyun-4.10.0-62.el9_4.10, fence-agents-all-4.10.0-62.el9_4.10, fence-agents-amt-ws-4.10.0-62.el9_4.10 +39
    • Red Hat Enterprise Linux Resilient Storage EUS (v.9.4) fence-agents-aliyun-4.10.0-62.el9_4.10, fence-agents-all-4.10.0-62.el9_4.10, fence-agents-amt-ws-4.10.0-62.el9_4.10 +39
  • RHSA-2025:0335 Released 2025-01-15 · Red Hat rating Important
    fence-agents security update
    • Red Hat Enterprise Linux AppStream EUS (v.9.2) fence-agents-4.10.0-43.el9_2.11, fence-agents-common-4.10.0-43.el9_2.11, fence-agents-compute-4.10.0-43.el9_2.11 +11
    • Red Hat Enterprise Linux High Availability EUS (v.9.2) fence-agents-aliyun-4.10.0-43.el9_2.11, fence-agents-all-4.10.0-43.el9_2.11, fence-agents-amt-ws-4.10.0-43.el9_2.11 +39
    • Red Hat Enterprise Linux Resilient Storage EUS (v.9.2) fence-agents-aliyun-4.10.0-43.el9_2.11, fence-agents-all-4.10.0-43.el9_2.11, fence-agents-amt-ws-4.10.0-43.el9_2.11 +39
  • RHSA-2025:0308 Released 2025-01-14 · Red Hat rating Important
    fence-agents security update
    • Red Hat Enterprise Linux AppStream (v. 9) fence-agents-4.10.0-76.el9_5.4, fence-agents-common-4.10.0-76.el9_5.4, fence-agents-compute-4.10.0-76.el9_5.4 +11
    • Red Hat Enterprise Linux High Availability (v. 9) fence-agents-aliyun-4.10.0-76.el9_5.4, fence-agents-all-4.10.0-76.el9_5.4, fence-agents-amt-ws-4.10.0-76.el9_5.4 +39
    • Red Hat Enterprise Linux Resilient Storage (v. 9) fence-agents-aliyun-4.10.0-76.el9_5.4, fence-agents-all-4.10.0-76.el9_5.4, fence-agents-amt-ws-4.10.0-76.el9_5.4 +39

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
OpenShift LightspeedAffectedNo fix yet
Red Hat Ansible Automation Platform 1.2AffectedNo fix planned: Will not fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux AI (RHEL AI)AffectedNo fix yet
Red Hat OpenShift Container Platform 4AffectedNo fix yet
Red Hat OpenShift distributed tracing 3AffectedNo fix yet
9Base-RHOSO-TOOLS-18Fixed—
Ansible Automation Platform Execution EnvironmentsFixed RHSA-2025:0753, RHSA-2025:1101
Discovery 1 for RHEL 9Fixed RHSA-2025:1249
Ironic content for Red Hat OpenShift Container Platform 4.12Fixed RHSA-2025:0834
Ironic content for Red Hat OpenShift Container Platform 4.13Fixed RHSA-2025:1118
Ironic content for Red Hat OpenShift Container Platform 4.14Fixed RHSA-2025:0842
Ironic content for Red Hat OpenShift Container Platform 4.15Fixed RHSA-2025:1130
Ironic content for Red Hat OpenShift Container Platform 4.16Fixed RHSA-2025:0830
Ironic content for Red Hat OpenShift Container Platform 4.17Fixed RHSA-2025:0656
Ironic content for Red Hat OpenShift Container Platform 4.18Fixed—
Quay v3Fixed—
Red Hat Ansible Automation Platform 2.4 for RHEL 8Fixed RHSA-2025:0721, RHSA-2025:0722
Red Hat Ansible Automation Platform 2.4 for RHEL 9Fixed RHSA-2025:0721
Red Hat Ansible Automation Platform 2.5 for RHEL 8Fixed RHSA-2025:0341, RHSA-2025:0777
Red Hat Ansible Automation Platform 2.5 for RHEL 9Fixed RHSA-2025:0777
Red Hat Developer Hub (RHDH) 1.4Fixed—
Red Hat Developer Hub 1.5Fixed RHSA-2025:3374
Red Hat Enterprise Linux AppStream (v. 9)Fixed RHSA-2025:0308
Red Hat Enterprise Linux AppStream E4S (v.9.0)Fixed RHSA-2025:0345
Red Hat Enterprise Linux AppStream EUS (v.9.2)Fixed RHSA-2025:0335
Red Hat Enterprise Linux AppStream EUS (v.9.4)Fixed RHSA-2025:0338
Red Hat Enterprise Linux High Availability (v. 9)Fixed RHSA-2025:0308
Red Hat Enterprise Linux High Availability E4S (v.9.0)Fixed RHSA-2025:0345
Red Hat Enterprise Linux High Availability EUS (v.9.2)Fixed RHSA-2025:0335
Red Hat Enterprise Linux High Availability EUS (v.9.4)Fixed RHSA-2025:0338
Red Hat Enterprise Linux Resilient Storage (v. 9)Fixed RHSA-2025:0308
Red Hat Enterprise Linux Resilient Storage EUS (v.9.2)Fixed RHSA-2025:0335
Red Hat Enterprise Linux Resilient Storage EUS (v.9.4)Fixed RHSA-2025:0338
Red Hat Enterprise Linux ResilientStorage E4S (v.9.0)Fixed RHSA-2025:0345
Red Hat OpenShift AI 2.16Fixed RHSA-2025:3368
Red Hat OpenShift Container Platform 4.16Fixed RHSA-2025:1123
Red Hat OpenShift Container Platform 4.17Fixed RHSA-2025:0875
Red Hat OpenShift Container Platform 4.18Fixed RHSA-2024:6121
Red Hat OpenStack Platform 17.1Fixed RHSA-2025:1861
Red Hat OpenStack Services on OpenShift 18.0Fixed—
Red Hat Satellite 6.15 for RHEL 8Fixed RHSA-2025:3491
Not affected: 26 products
  • 9Base-RHOSO-TOOLS-18
  • Ansible Automation Platform Execution Environments
  • Red Hat Ansible Automation Platform 2
  • Red Hat Ansible Automation Platform 2.4 for RHEL 8
  • Red Hat Ansible Automation Platform 2.4 for RHEL 9
  • Red Hat Ansible Automation Platform 2.5 for RHEL 8
  • Red Hat Ansible Automation Platform 2.5 for RHEL 9
  • Red Hat Developer Hub (RHDH) 1.4
  • Red Hat Developer Hub 1
  • Red Hat Developer Hub 1.5
  • Red Hat Enterprise Linux 10
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • Red Hat OpenShift AI (RHOAI)
  • Red Hat OpenShift AI 2.16
  • Red Hat OpenShift Container Platform 4
  • Red Hat OpenShift Container Platform 4.12
  • Red Hat OpenShift Container Platform 4.13
  • Red Hat OpenShift Container Platform 4.14
  • Red Hat OpenShift Container Platform 4.15
  • Red Hat OpenShift Container Platform 4.16
  • Red Hat OpenShift Container Platform 4.17
  • Red Hat OpenStack Services on OpenShift 18.0
  • Red Hat Satellite 6.15 for RHEL 8
  • Red Hat Update Infrastructure 4 for Cloud Providers

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-56201
  2. 2026-10-03 Alias added: GHSA-gmj6-6f8f-6699
  3. 2026-10-27 Affected versions changed · Red Hat
  4. 2026-10-30 Fix available: 9Base-RHOSO-TOOLS-18, Ironic content for Red Hat OpenShift Container Platform 4.18, Red Hat OpenStack Services on OpenShift 18.0 · Red Hat

References

  • TI-2019-08127 In Pallets Jinja before 2.10.1, str.format_map allows a sandbox escape. CVSS 3.1HIGH 8.6
  • TI-2016-08785 In Pallets Jinja before 2.8.1, str.format allows a sandbox escape. CVSS 3.0HIGH 8.6
  • TI-2020-17297 Regular expression denial of service (ReDoS) in jinja2 CVSS 3.1MEDIUM 5.3
  • TI-2024-14788 Jinja vulnerable to Cross-Site Scripting (XSS) CVSS 3.1MEDIUM 6.1
  • TI-2025-20348 Jinja sandbox breakout through attr filter selecting format method CVSS 4.0MEDIUM 5.4
  • TI-2024-37287 Jinja has a sandbox breakout through indirect reference to format method CVSS 4.0MEDIUM 5.4
See all 7 →

Sources