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. Jinjas sandbox does catch calls to str.format and ensures they dont escape the sandbox. However, its possible to store a reference to a malicious strings 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.
The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Ansible Automation Platform Execution Environments | RedHat | ansible-automation-platform/ee-minimal-rhel8:2.13.10-37 | * |
Ansible Automation Platform Execution Environments | RedHat | ansible-automation-platform/ee-minimal-rhel9:2.18.1-4 | * |
Ansible Automation Platform Execution Environments | RedHat | ansible-automation-platform/ee-minimal-rhel8:2.13.10-39 | * |
Ansible Automation Platform Execution Environments | RedHat | ansible-automation-platform/ee-minimal-rhel9:2.18.2-4 | * |
Discovery 1 for RHEL 9 | RedHat | discovery/discovery-server-rhel9:1.12.0-1 | * |
Discovery 1 for RHEL 9 | RedHat | discovery/discovery-ui-rhel9:1.12.0-1 | * |
Ironic content for Red Hat OpenShift Container Platform 4.12 | RedHat | python-jinja2-0:3.0.1-6.el9.2 | * |
Ironic content for Red Hat OpenShift Container Platform 4.13 | RedHat | python-jinja2-0:3.0.1-6.el9.2 | * |
Red Hat Ansible Automation Platform 2.4 for RHEL 8 | RedHat | automation-controller-0:4.5.17-1.el8ap | * |
Red Hat Ansible Automation Platform 2.4 for RHEL 8 | RedHat | python3x-jinja2-0:3.1.5-1.el8ap | * |
Red Hat Ansible Automation Platform 2.4 for RHEL 8 | RedHat | ansible-automation-platform-24/lightspeed-rhel8-operator:2.4-33 | * |
Red Hat Ansible Automation Platform 2.4 for RHEL 9 | RedHat | automation-controller-0:4.5.17-1.el9ap | * |
Red Hat Ansible Automation Platform 2.4 for RHEL 9 | RedHat | python-jinja2-0:3.1.5-1.el9ap | * |
Red Hat Ansible Automation Platform 2.5 for RHEL 8 | RedHat | ansible-automation-platform-25/lightspeed-rhel8:2.5.250107-1 | * |
Red Hat Ansible Automation Platform 2.5 for RHEL 8 | RedHat | automation-controller-0:4.6.7-1.el8ap | * |
Red Hat Ansible Automation Platform 2.5 for RHEL 8 | RedHat | python3.11-jinja2-0:3.1.5-1.el8ap | * |
Red Hat Ansible Automation Platform 2.5 for RHEL 9 | RedHat | automation-controller-0:4.6.7-1.el9ap | * |
Red Hat Ansible Automation Platform 2.5 for RHEL 9 | RedHat | python3.11-jinja2-0:3.1.5-1.el9ap | * |
Red Hat Enterprise Linux 7 Extended Lifecycle Support | RedHat | python-jinja2-0:2.7.2-5.el7_9 | * |
Red Hat Enterprise Linux 8 | RedHat | python-jinja2-0:2.10.1-6.el8_10 | * |
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | RedHat | python-jinja2-0:2.10.1-2.el8_4.1 | * |
Red Hat Enterprise Linux 8.4 Telecommunications Update Service | RedHat | python-jinja2-0:2.10.1-2.el8_4.1 | * |
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions | RedHat | python-jinja2-0:2.10.1-2.el8_4.1 | * |
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | RedHat | python-jinja2-0:2.10.1-4.el8_6.1 | * |
Red Hat Enterprise Linux 8.6 Telecommunications Update Service | RedHat | python-jinja2-0:2.10.1-4.el8_6.1 | * |
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | RedHat | python-jinja2-0:2.10.1-4.el8_6.1 | * |
Red Hat Enterprise Linux 8.8 Extended Update Support | RedHat | python-jinja2-0:2.10.1-4.el8_8.1 | * |
Red Hat Enterprise Linux 9 | RedHat | fence-agents-0:4.10.0-76.el9_5.4 | * |
Red Hat Enterprise Linux 9 | RedHat | python-jinja2-0:2.11.3-7.el9_5 | * |
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | RedHat | fence-agents-0:4.10.0-20.el9_0.20 | * |
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | RedHat | python-jinja2-0:2.11.3-4.el9_0.1 | * |
Red Hat Enterprise Linux 9.2 Extended Update Support | RedHat | fence-agents-0:4.10.0-43.el9_2.11 | * |
Red Hat Enterprise Linux 9.2 Extended Update Support | RedHat | python-jinja2-0:2.11.3-4.el9_2.1 | * |
Red Hat Enterprise Linux 9.4 Extended Update Support | RedHat | fence-agents-0:4.10.0-62.el9_4.10 | * |
Red Hat Enterprise Linux 9.4 Extended Update Support | RedHat | python-jinja2-0:2.11.3-6.el9_4 | * |
Red Hat OpenShift Container Platform 4.12 | RedHat | openshift4/ose-ansible-operator:v4.12.0-202502040858.p0.g0bd975e.assembly.stream.el8 | * |
Red Hat OpenShift Container Platform 4.14 | RedHat | python-jinja2-0:3.0.1-6.el9.2 | * |
Red Hat OpenShift Container Platform 4.15 | RedHat | python-jinja2-0:3.0.1-6.el9.2 | * |
Red Hat OpenShift Container Platform 4.16 | RedHat | openshift4/ose-ansible-rhel9-operator:v4.16.0-202501311735.p0.g2cb0020.assembly.stream.el9 | * |
Red Hat OpenShift Container Platform 4.16 | RedHat | python-jinja2-0:3.0.1-6.el9.2 | * |
Red Hat OpenShift Container Platform 4.17 | RedHat | openshift4/ose-ansible-rhel9-operator:v4.17.0-202501300634.p0.g9cb5839.assembly.stream.el9 | * |
Red Hat OpenShift Container Platform 4.17 | RedHat | python-jinja2-0:3.1.5-1.el9 | * |
Red Hat Developer Hub (RHDH) 1.4 | RedHat | registry.redhat.io/rhdh/rhdh-hub-rhel9:sha256:d8268197ba0466643efb818fcad8f0fc29e32463f75b0f7f51d9ce75ec717572 | * |
Jinja2 | Ubuntu | devel | * |
Jinja2 | Ubuntu | esm-infra-legacy/trusty | * |
Jinja2 | Ubuntu | esm-infra/bionic | * |
Jinja2 | Ubuntu | esm-infra/xenial | * |
Jinja2 | Ubuntu | focal | * |
Jinja2 | Ubuntu | jammy | * |
Jinja2 | Ubuntu | noble | * |
Jinja2 | Ubuntu | oracular | * |
Jinja2 | Ubuntu | upstream | * |