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.
This issue has been addressed in the following products: Red Hat Enterprise Linux 9.2 Extended Update Support Via RHSA-2025:0335 https://access.redhat.com/errata/RHSA-2025:0335
This issue has been addressed in the following products: Red Hat Enterprise Linux 9.4 Extended Update Support Via RHSA-2025:0338 https://access.redhat.com/errata/RHSA-2025:0338
This issue has been addressed in the following products: Red Hat Ansible Automation Platform 2.5 for RHEL 8 Red Hat Ansible Automation Platform 2.5 for RHEL 9 Via RHSA-2025:0341 https://access.redhat.com/errata/RHSA-2025:0341
This issue has been addressed in the following products: Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions Via RHSA-2025:0345 https://access.redhat.com/errata/RHSA-2025:0345
This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2025:0667 https://access.redhat.com/errata/RHSA-2025:0667
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2025:0711 https://access.redhat.com/errata/RHSA-2025:0711
This issue has been addressed in the following products: Red Hat Ansible Automation Platform 2.4 for RHEL 9 Red Hat Ansible Automation Platform 2.4 for RHEL 8 Via RHSA-2025:0721 https://access.redhat.com/errata/RHSA-2025:0721
This issue has been addressed in the following products: Red Hat Ansible Automation Platform 2.4 for RHEL 8 Red Hat Ansible Automation Platform 2.4 for RHEL 9 Via RHSA-2025:0722 https://access.redhat.com/errata/RHSA-2025:0722
This issue has been addressed in the following products: Ansible Automation Platform Execution Environments Via RHSA-2025:0753 https://access.redhat.com/errata/RHSA-2025:0753
This issue has been addressed in the following products: Red Hat OpenShift Container Platform 4.17 Via RHSA-2025:0656 https://access.redhat.com/errata/RHSA-2025:0656
This issue has been addressed in the following products: Red Hat Ansible Automation Platform 2.5 for RHEL 9 Red Hat Ansible Automation Platform 2.5 for RHEL 8 Via RHSA-2025:0777 https://access.redhat.com/errata/RHSA-2025:0777
This issue has been addressed in the following products: Red Hat Enterprise Linux 9.4 Extended Update Support Via RHSA-2025:0850 https://access.redhat.com/errata/RHSA-2025:0850
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.8 Extended Update Support Via RHSA-2025:0883 https://access.redhat.com/errata/RHSA-2025:0883
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions Red Hat Enterprise Linux 8.6 Telecommunications Update Service Via RHSA-2025:0950 https://access.redhat.com/errata/RHSA-2025:0950
This issue has been addressed in the following products: Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions Via RHSA-2025:0951 https://access.redhat.com/errata/RHSA-2025:0951
This issue has been addressed in the following products: Red Hat Enterprise Linux 9.2 Extended Update Support Via RHSA-2025:0978 https://access.redhat.com/errata/RHSA-2025:0978
This issue has been addressed in the following products: Red Hat OpenShift Container Platform 4.17 Via RHSA-2025:0875 https://access.redhat.com/errata/RHSA-2025:0875
This issue has been addressed in the following products: Ansible Automation Platform Execution Environments Via RHSA-2025:1101 https://access.redhat.com/errata/RHSA-2025:1101
This issue has been addressed in the following products: Ironic content for Red Hat OpenShift Container Platform 4.12 Red Hat OpenShift Container Platform 4.12 Via RHSA-2025:0834 https://access.redhat.com/errata/RHSA-2025:0834
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support Red Hat Enterprise Linux 8.4 Telecommunications Update Service Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions Via RHSA-2025:1109 https://access.redhat.com/errata/RHSA-2025:1109
This issue has been addressed in the following products: Red Hat OpenShift Container Platform 4.14 Via RHSA-2025:0842 https://access.redhat.com/errata/RHSA-2025:0842
This issue has been addressed in the following products: Red Hat OpenShift Container Platform 4.16 Via RHSA-2025:0830 https://access.redhat.com/errata/RHSA-2025:0830
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Extended Lifecycle Support Via RHSA-2025:1250 https://access.redhat.com/errata/RHSA-2025:1250
This issue has been addressed in the following products: Red Hat OpenShift Container Platform 4.16 Via RHSA-2025:1123 https://access.redhat.com/errata/RHSA-2025:1123
This issue has been addressed in the following products: Red Hat OpenShift Container Platform 4.15 Via RHSA-2025:1130 https://access.redhat.com/errata/RHSA-2025:1130
This issue has been addressed in the following products: Red Hat OpenShift Container Platform 4.12 Via RHSA-2025:1241 https://access.redhat.com/errata/RHSA-2025:1241
This issue has been addressed in the following products: Red Hat OpenShift Container Platform 4.13 Ironic content for Red Hat OpenShift Container Platform 4.13 Via RHSA-2025:1118 https://access.redhat.com/errata/RHSA-2025:1118
This issue has been addressed in the following products: Red Hat OpenStack Platform 17.1 for RHEL 9 Via RHSA-2025:1861 https://access.redhat.com/errata/RHSA-2025:1861
This issue has been addressed in the following products: Red Hat OpenShift Container Platform 4.15 Via RHSA-2025:1710 https://access.redhat.com/errata/RHSA-2025:1710
This issue has been addressed in the following products: Red Hat Satellite 6.16 for RHEL 8 Red Hat Satellite 6.16 for RHEL 9 Via RHSA-2025:2399 https://access.redhat.com/errata/RHSA-2025:2399
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.2 Advanced Update Support Via RHSA-2025:2612 https://access.redhat.com/errata/RHSA-2025:2612
This issue has been addressed in the following products: Red Hat OpenShift Container Platform 4.13 Via RHSA-2025:2700 https://access.redhat.com/errata/RHSA-2025:2700